API documentation fixed
This commit is contained in:
@@ -4,11 +4,11 @@
|
|||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
- **V1.4**: Bugfix: no whitespace elimination from the note text is needed now for the signature compuation.
|
- **V1.4**: Bugfix: no whitespace elimination from the note text is needed now for the signature computation.
|
||||||
- **V1.3**: New note ID format.
|
- **V1.3**: New note ID format.
|
||||||
- **V1.2**: Theme & font settings can be specified during the publishing.
|
- **V1.2**: Theme & font settings can be specified during the publishing.
|
||||||
- **V1.1**: fields `publisher` and `title` in the response to the note retrieval.
|
- **V1.1**: Fields `publisher` and `title` in the response to the note retrieval.
|
||||||
- **V1.0**: initial release.
|
- **V1.0**: Initial release.
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
@@ -46,8 +46,8 @@ Example:
|
|||||||
longURL: "https://www.notehub.org/2014/1/3/lorem-ipsum",
|
longURL: "https://www.notehub.org/2014/1/3/lorem-ipsum",
|
||||||
shortURL: "https://www.notehub.org/0vrcp",
|
shortURL: "https://www.notehub.org/0vrcp",
|
||||||
statistics: {
|
statistics: {
|
||||||
published: "2014-1-3",
|
published: "1396250865735",
|
||||||
edited: "2014-1-12",
|
edited: "1412516289863",
|
||||||
views: 24
|
views: 24
|
||||||
},
|
},
|
||||||
status: {
|
status: {
|
||||||
|
|||||||
+1
-1
@@ -58,7 +58,7 @@
|
|||||||
(let [req-version (Double/parseDouble req-version)
|
(let [req-version (Double/parseDouble req-version)
|
||||||
version (Double/parseDouble version)]
|
version (Double/parseDouble version)]
|
||||||
(if (< req-version version)
|
(if (< req-version version)
|
||||||
{:status (create-response false "Deprecated API version")}
|
{:status (create-response false "Deprecated API version")}
|
||||||
(f params)))
|
(f params)))
|
||||||
{:status (create-response false "API version expected")}))
|
{:status (create-response false "API version expected")}))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user