Merge "Add "/" to API-Ref Docs"

This commit is contained in:
Jenkins 2016-05-17 20:30:41 +00:00 committed by Gerrit Code Review
commit 91795bf367
3 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,37 @@
============
API Versions
============
Show all enabled API versions
List all API versions
=====================
.. rest_method:: GET /
Normal response codes: 200
Error response codes:405,404,403,401,400,503,
Request
-------
No parameters needed
Response Parameters
-------------------
.. rest_parameters:: parameters.yaml
- x-openstack-request-id: x-openstack-request-id
Response Example
----------------
.. literalinclude:: samples/versions/get-versions-response.json
:language: javascript

View File

@ -6,6 +6,7 @@
.. rest_expand_all::
.. include:: dns-api-v2-version.inc
.. include:: dns-api-v2-zone.inc
.. include:: dns-api-v2-zone-import.inc
.. include:: dns-api-v2-zone-export.inc

View File

@ -0,0 +1,26 @@
{
"versions": {
"values": [
{
"id": "v1",
"links": [
{
"href": "http://127.0.0.1:9001/v1",
"rel": "self"
}
],
"status": "DEPRECATED"
},
{
"id": "v2",
"links": [
{
"href": "http://127.0.0.1:9001/v2",
"rel": "self"
}
],
"status": "CURRENT"
}
]
}
}