Skip to content

Commit

Permalink
modify basic-api.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
bithernet committed Jul 28, 2016
1 parent 20dc6ab commit dd50194
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions source/api/basic-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,32 @@
Basic API
********************************************************************************

Hello
All basic APIs.

Time
----
.. http:get:: /api/v1/open/time/
Get current server time.

.. sourcecode:: js

{
"meta": {
"limit": 20,
"next": "/api/v1/build/?limit=20&offset=20",
"offset": 0,
"previous": null,
"total_count": 86684
},
"objects": [BUILDS]
}

:>json integer limit: Number of Builds returned.
:>json string next: URI for next set of Builds.
:>json integer offset: Current offset used for pagination.
:>json string previous: URI for previous set of Builds.
:>json integer total_count: Total number of Builds.
:>json array objects: Array of `Build`_ objects.

Hello
================================================================================
Hello

0 comments on commit dd50194

Please sign in to comment.