Update Get API version Curl example
Currently, `curl http://0.0.0.0:35357` and `curl http://0.0.0.0:35357/v2.0/` no longer have the same response, since keystone has it's V3 APIs. Update the doc to differentiate the two Curl example. Change-Id: I08f5e3bd502ebd78ea775ea4135b5c3ffb80e9c7
This commit is contained in:
parent
649a18b96c
commit
cf877cab9c
|
@ -755,7 +755,53 @@ and supported media types:
|
|||
|
||||
$ curl http://0.0.0.0:35357
|
||||
|
||||
or:
|
||||
.. code-block:: javascript
|
||||
|
||||
{
|
||||
"versions": {
|
||||
"values": [
|
||||
{
|
||||
"id": "v3.4",
|
||||
"links": [
|
||||
{
|
||||
"href": "http://127.0.0.1:35357/v3/",
|
||||
"rel": "self"
|
||||
}
|
||||
],
|
||||
"media-types": [
|
||||
{
|
||||
"base": "application/json",
|
||||
"type": "application/vnd.openstack.identity-v3+json"
|
||||
}
|
||||
],
|
||||
"status": "stable",
|
||||
"updated": "2015-03-30T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "v2.0",
|
||||
"links": [
|
||||
{
|
||||
"href": "http://127.0.0.1:35357/v2.0/",
|
||||
"rel": "self"
|
||||
},
|
||||
{
|
||||
"href": "http://docs.openstack.org/",
|
||||
"rel": "describedby",
|
||||
"type": "text/html"
|
||||
}
|
||||
],
|
||||
"media-types": [
|
||||
{
|
||||
"base": "application/json",
|
||||
"type": "application/vnd.openstack.identity-v2.0+json"
|
||||
}
|
||||
],
|
||||
"status": "stable",
|
||||
"updated": "2014-04-17T00:00:00Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
|
@ -766,27 +812,27 @@ Returns:
|
|||
.. code-block:: javascript
|
||||
|
||||
{
|
||||
"version":{
|
||||
"id":"v2.0",
|
||||
"status":"beta",
|
||||
"updated":"2011-11-19T00:00:00Z",
|
||||
"links":[
|
||||
"version": {
|
||||
"id": "v2.0",
|
||||
"links": [
|
||||
{
|
||||
"rel":"self",
|
||||
"href":"http://127.0.0.1:35357/v2.0/"
|
||||
"href": "http://127.0.0.1:35357/v2.0/",
|
||||
"rel": "self"
|
||||
},
|
||||
{
|
||||
"rel":"describedby",
|
||||
"type":"text/html",
|
||||
"href":"http://docs.openstack.org/"
|
||||
},
|
||||
],
|
||||
"media-types":[
|
||||
{
|
||||
"base":"application/json",
|
||||
"type":"application/vnd.openstack.identity-v2.0+json"
|
||||
"href": "http://docs.openstack.org/",
|
||||
"rel": "describedby",
|
||||
"type": "text/html"
|
||||
}
|
||||
]
|
||||
],
|
||||
"media-types": [
|
||||
{
|
||||
"base": "application/json",
|
||||
"type": "application/vnd.openstack.identity-v2.0+json"
|
||||
}
|
||||
],
|
||||
"status": "stable",
|
||||
"updated": "2014-04-17T00:00:00Z"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue