api: Deprecate v2 API
Change-Id: Ie236cc001ddc6362b92119710ec1672ae733318e Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
@@ -65,10 +65,10 @@ as follows::
|
||||
"rel": "self"
|
||||
}
|
||||
],
|
||||
"status": "SUPPORTED",
|
||||
"status": "DEPRECATED",
|
||||
"version": "",
|
||||
"min_version": "",
|
||||
"updated": "2011-01-21T11:33:21Z"
|
||||
"updated": "2025-07-04T12:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "v2.1",
|
||||
|
@@ -64,7 +64,7 @@ links and MIME types to available versions.
|
||||
"type": "application/vnd.openstack.compute+json;version=2"
|
||||
}
|
||||
],
|
||||
"status": "SUPPORTED"
|
||||
"status": "DEPRECATED"
|
||||
},
|
||||
{
|
||||
"id": "v2.1",
|
||||
|
@@ -18,9 +18,9 @@
|
||||
"type": "application/vnd.openstack.compute+json;version=2"
|
||||
}
|
||||
],
|
||||
"status": "SUPPORTED",
|
||||
"status": "DEPRECATED",
|
||||
"version": "",
|
||||
"min_version": "",
|
||||
"updated": "2011-01-21T11:33:21Z"
|
||||
"updated": "2025-07-04T12:00:00Z"
|
||||
}
|
||||
}
|
||||
|
@@ -8,10 +8,10 @@
|
||||
"rel": "self"
|
||||
}
|
||||
],
|
||||
"status": "SUPPORTED",
|
||||
"status": "DEPRECATED",
|
||||
"version": "",
|
||||
"min_version": "",
|
||||
"updated": "2011-01-21T11:33:21Z"
|
||||
"updated": "2025-07-04T12:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "v2.1",
|
||||
@@ -27,4 +27,4 @@
|
||||
"updated": "2013-07-23T11:33:21Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@@ -33,10 +33,10 @@ LINKS = {
|
||||
VERSIONS = {
|
||||
"v2.0": {
|
||||
"id": "v2.0",
|
||||
"status": "SUPPORTED",
|
||||
"status": "DEPRECATED",
|
||||
"version": "",
|
||||
"min_version": "",
|
||||
"updated": "2011-01-21T11:33:21Z",
|
||||
"updated": "2025-07-04T12:00:00Z",
|
||||
"links": [
|
||||
{
|
||||
"rel": "describedby",
|
||||
|
@@ -19,8 +19,8 @@
|
||||
}
|
||||
],
|
||||
"min_version": "",
|
||||
"status": "SUPPORTED",
|
||||
"updated": "2011-01-21T11:33:21Z",
|
||||
"status": "DEPRECATED",
|
||||
"updated": "2025-07-04T12:00:00Z",
|
||||
"version": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -8,10 +8,10 @@
|
||||
"rel": "self"
|
||||
}
|
||||
],
|
||||
"status": "SUPPORTED",
|
||||
"status": "DEPRECATED",
|
||||
"version": "",
|
||||
"min_version": "",
|
||||
"updated": "2011-01-21T11:33:21Z"
|
||||
"updated": "2025-07-04T12:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "v2.1",
|
||||
|
@@ -46,10 +46,10 @@ EXP_LINKS = {
|
||||
EXP_VERSIONS = {
|
||||
"v2.0": {
|
||||
"id": "v2.0",
|
||||
"status": "SUPPORTED",
|
||||
"status": "DEPRECATED",
|
||||
"version": "",
|
||||
"min_version": "",
|
||||
"updated": "2011-01-21T11:33:21Z",
|
||||
"updated": "2025-07-04T12:00:00Z",
|
||||
"links": [
|
||||
{
|
||||
"rel": "describedby",
|
||||
@@ -116,10 +116,10 @@ class VersionsTestV21WithV2CompatibleWrapper(test.NoDBTestCase):
|
||||
expected = [
|
||||
{
|
||||
"id": "v2.0",
|
||||
"status": "SUPPORTED",
|
||||
"status": "DEPRECATED",
|
||||
"version": "",
|
||||
"min_version": "",
|
||||
"updated": "2011-01-21T11:33:21Z",
|
||||
"updated": "2025-07-04T12:00:00Z",
|
||||
"links": [
|
||||
{
|
||||
"rel": "self",
|
||||
@@ -153,10 +153,10 @@ class VersionsTestV21WithV2CompatibleWrapper(test.NoDBTestCase):
|
||||
expected = {
|
||||
"version": {
|
||||
"id": "v2.0",
|
||||
"status": "SUPPORTED",
|
||||
"status": "DEPRECATED",
|
||||
"version": "",
|
||||
"min_version": "",
|
||||
"updated": "2011-01-21T11:33:21Z",
|
||||
"updated": "2025-07-04T12:00:00Z",
|
||||
"links": [
|
||||
{
|
||||
"rel": "self",
|
||||
@@ -203,7 +203,7 @@ class VersionsTestV21WithV2CompatibleWrapper(test.NoDBTestCase):
|
||||
"choices": [
|
||||
{
|
||||
"id": "v2.0",
|
||||
"status": "SUPPORTED",
|
||||
"status": "DEPRECATED",
|
||||
"links": [
|
||||
{
|
||||
"href": "http://localhost/v2/images/1",
|
||||
@@ -262,7 +262,7 @@ class VersionsTestV21WithV2CompatibleWrapper(test.NoDBTestCase):
|
||||
"choices": [
|
||||
{
|
||||
"id": "v2.0",
|
||||
"status": "SUPPORTED",
|
||||
"status": "DEPRECATED",
|
||||
"links": [
|
||||
{
|
||||
"href": "http://localhost/v2/servers/" + uuid,
|
||||
|
@@ -0,0 +1,9 @@
|
||||
---
|
||||
deprecations:
|
||||
- |
|
||||
The legacy v2 API is now deprecated for removal, and the status in the root
|
||||
version document (``/``) has been changed from ``SUPPORTED`` to
|
||||
``DEPRECATED``. This will cause some clients like keystoneauth to ignore
|
||||
the endpoint by default. Users are encouraged to switch the v2.1 API, which
|
||||
is functionally identical to the v2 API when using the ``2.1`` API
|
||||
microversion.
|
Reference in New Issue
Block a user