Fix version details API does not return 200 OK

When use version details api http://ip:8786/v2 to get api details,
it does not return 200 OK, and the return value is empty.

This change is to correct the version details API URL and its
sample response.

Change-Id: I547dca649db22b31051b490c2b230322d3c9d479
This commit is contained in:
junboli 2018-01-12 08:52:09 +08:00
parent 6dd3776723
commit 65626f449f
2 changed files with 14 additions and 6 deletions

View File

@ -1,20 +1,28 @@
{
"choices": [
"versions": [
{
"status": "SUPPORTED",
"status": "DEPRECATED",
"updated": "2017-02-25T12:00:00Z",
"media-types": [
{
"base": "application/json",
"type": "application/vnd.openstack.volume+json;version=1"
"type": "application/vnd.openstack.volume+json;version=2"
}
],
"id": "v2.0",
"links": [
{
"href": "http://23.253.248.171:8776/v2/v2.json",
"href": "https://docs.openstack.org/",
"type": "text/html",
"rel": "describedby"
},
{
"href": "http://23.253.248.171:8776/v2/",
"rel": "self"
}
]
],
"min_version": "",
"version": ""
}
]
}

View File

@ -9,7 +9,7 @@ API versions
Show API v2 details
~~~~~~~~~~~~~~~~~~~
.. rest_method:: GET /v2
.. rest_method:: GET /v2/
Shows details for Block Storage API v2.