zaqar/api-ref/source/versions.inc
Fei Long Wang 9a3b0191af Add Queues for api ref
Change-Id: I45566944491d0ddf6d43ad60c3f97d3d7f5aa057
2016-06-15 14:50:41 +12:00

39 lines
1.0 KiB
HTML

============
API Versions
============
The Zaqar API only supports ''major versions'' expressed in request URLs.
List major versions
===================
.. rest_method:: GET /
Gets the home document.
This operation gets the home document.
The entire API is discoverable from a single starting point, the home document. To explore the entire API, you need to know only this one URI. This document is cacheable.
The home document lets you write clients by using relational links, so clients do not have to construct their own URLs. You can click through and view the JSON doc in your browser.
For more information about home documents, see `http://tools.ietf.org/html/draft-nottingham-json-home-02 <http://tools.ietf.org/html/draft-nottingham-json-home-02>`__.
Normal response codes: 300
Error response codes: serviceUnavailable (503)
Response Parameters
-------------------
.. rest_parameters:: parameters.yaml
- versions: versions
Response Example
----------------
.. literalinclude:: samples/versions-list-response.json
:language: javascript