Fix version numbers on media-types
On "list API versions", 'media-types' type needed to show the version number as "version=". However all versions represent "1" always. It is confusing, so this patch fixes them for accurate ones. Closes-Bug: #1675112 Change-Id: I43ee2661b5412e24f225c6a272702b42d779667a
This commit is contained in:
parent
c6ab33858a
commit
678a77a905
@ -43,7 +43,7 @@
|
||||
"media-types": [
|
||||
{
|
||||
"base": "application/json",
|
||||
"type": "application/vnd.openstack.volume+json;version=1"
|
||||
"type": "application/vnd.openstack.volume+json;version=2"
|
||||
}
|
||||
],
|
||||
"id": "v2.0"
|
||||
@ -67,7 +67,7 @@
|
||||
"media-types": [
|
||||
{
|
||||
"base": "application/json",
|
||||
"type": "application/vnd.openstack.volume+json;version=1"
|
||||
"type": "application/vnd.openstack.volume+json;version=3"
|
||||
}
|
||||
],
|
||||
"id": "v3.0"
|
||||
|
@ -32,13 +32,6 @@ _LINKS = [{
|
||||
"href": "http://docs.openstack.org/",
|
||||
}]
|
||||
|
||||
_MEDIA_TYPES = [{
|
||||
"base":
|
||||
"application/json",
|
||||
"type":
|
||||
"application/vnd.openstack.volume+json;version=1",
|
||||
},
|
||||
]
|
||||
|
||||
_KNOWN_VERSIONS = {
|
||||
"v1.0": {
|
||||
@ -48,7 +41,10 @@ _KNOWN_VERSIONS = {
|
||||
"min_version": "",
|
||||
"updated": "2016-05-02T20:25:19Z",
|
||||
"links": _LINKS,
|
||||
"media-types": _MEDIA_TYPES,
|
||||
"media-types": [{
|
||||
"base": "application/json",
|
||||
"type": "application/vnd.openstack.volume+json;version=1",
|
||||
}]
|
||||
},
|
||||
"v2.0": {
|
||||
"id": "v2.0",
|
||||
@ -57,7 +53,10 @@ _KNOWN_VERSIONS = {
|
||||
"min_version": "",
|
||||
"updated": "2017-02-25T12:00:00Z",
|
||||
"links": _LINKS,
|
||||
"media-types": _MEDIA_TYPES,
|
||||
"media-types": [{
|
||||
"base": "application/json",
|
||||
"type": "application/vnd.openstack.volume+json;version=2",
|
||||
}]
|
||||
},
|
||||
"v3.0": {
|
||||
"id": "v3.0",
|
||||
@ -66,7 +65,10 @@ _KNOWN_VERSIONS = {
|
||||
"min_version": api_version_request._MIN_API_VERSION,
|
||||
"updated": "2016-02-08T12:20:21Z",
|
||||
"links": _LINKS,
|
||||
"media-types": _MEDIA_TYPES,
|
||||
"media-types": [{
|
||||
"base": "application/json",
|
||||
"type": "application/vnd.openstack.volume+json;version=3",
|
||||
}]
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user