##// END OF EJS Templates
Cleaner box shadow for .post in Snow White theme.
Cleaner box shadow for .post in Snow White theme.

File last commit:

r1567:1578c7d8 Lotgyero/apimarkd...
r1924:8f0c554a tenno-seremel/cle...
Show More
api.markdown
81 lines | 1.8 KiB | text/x-markdown | MarkdownLexer
neko259
Added a doc for API
r503 # INTRO #
The API is provided to query the data from a neaboard server by any client
application.
Tha data is returned in the json format and got by an http query.
# METHODS #
neko259
Added api for thread update in json
r524 ## Threads ##
neko259
Added a doc for API
r503 /api/threads/N/?offset=M&tag=O
neko259
Added api for thread update in json
r524 Get a thread list. You will get ``N`` threads (required parameter) starting from
``M``th one (optional parameter, default is 0) with the tag ``O`` (optional parameter,
neko259
Added a doc for API
r503 threads with any tags are shown by default).
neko259
Added api for thread update in json
r524 ## Tags ##
neko259
Added a doc for API
r503 /api/tags/
Get all active tag list. Active tag is a tag that has at least 1 active thread
associated with it.
neko259
Added api for thread update in json
r524 ## Thread ##
neko259
Added a doc for API
r503 /api/thread/N/
neko259
Added api for thread update in json
r524 Get all ``N``th thread post. ``N`` is an opening post ID for the thread.
neko259
Added last update time to the initial thread result in api
r525 Output format:
* ``posts``: list of posts
* ``last_update``: last update timestamp
neko259
Added api for thread update in json
r524 ## Thread diff ##
neko259
Updated API documentation
r1087 /api/diff_thread
Parameters:
neko259
Added api for thread update in json
r524
neko259
Updated API documentation
r1087 * ``thread``: thread id
* ``last_update``: last update timestamp
* ``last_post``: last added post id
Lotgyero
api.markdown отредактирован онлайн на Bitbucket
r1567 Get the diff of the thread in the ``O``
neko259
Added api for thread update in json
r524 format. 2 formats are available: ``html`` (used in AJAX thread update) and
``json``. The default format is ``html``. Return list format:
* ``added``: list of added posts
* ``updated``: list of updated posts
* ``last_update``: last update timestamp
neko259
Added notification API
r994 ## Notifications ##
/api/notifications/<username>/[?last=<id>]
Get user notifications for user starting from the post ID.
* ``username``: name of the notified user
* ``id``: ID of a last notification post
neko259
Added api for thread update in json
r524 ## General info ##
neko259
Added a doc for API
r503
In case of incorrect request you can get http error 404.
neko259
Added response format to the api doc
r523
neko259
Added last update time to the initial thread result in api
r525 Response JSON for a post or thread contains:
neko259
Added response format to the api doc
r523
neko259
Added api for thread update in json
r524 * ``id``
* ``title``
* ``text``
* ``image`` (if image available)
* ``image_preview`` (if image available)
neko259
Added bump time to the thread JSON
r526 * ``bump_time`` (for threads)
neko259
Added response format to the api doc
r523
In future, it will also contain:
* tags list (for thread)
* publishing time
* bump time
* reply IDs (if available)