diff options
author | Bin Yang <bin.yang@windriver.com> | 2019-05-08 18:04:21 +0000 |
---|---|---|
committer | Bin Yang <bin.yang@windriver.com> | 2019-05-08 18:04:21 +0000 |
commit | 7bca509da93d96c8c8405ce6d80c3a822edd0071 (patch) | |
tree | 821cbb4c0c3a9f00f58aeb0402994181916919b3 | |
parent | d80634ce2a300cd3256b789e9e0bb8df82db2b41 (diff) |
Fix identity version links error
Change-Id: Ie77112ba78d591bddb2c3a495c9fd8902e5cd8b0
Issue-ID: MULTICLOUD-611
Signed-off-by: Bin Yang <bin.yang@windriver.com>
-rw-r--r-- | share/newton_base/proxy/identityV3.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/share/newton_base/proxy/identityV3.py b/share/newton_base/proxy/identityV3.py index b31efc0c..6539943b 100644 --- a/share/newton_base/proxy/identityV3.py +++ b/share/newton_base/proxy/identityV3.py @@ -64,7 +64,7 @@ class Tokens(APIView): self._logger.info("RESP with status> %s" % status.HTTP_200_OK) # compose the links - v3_version_detail["links"] = [{ + v3_version_detail["version"]["links"] = [{ "href": request.META.get("REQUEST_URI", ""), "rel": "self" }] @@ -167,8 +167,8 @@ class Tokens(APIView): v2_version_detail = { "version": { - "status": "stable", - "updated": "2014-04-17T00:00:00Z", + "status": "deprecated", + "updated": "2016-08-04T00:00:00Z", "media-types": [ { "base": "application/json", @@ -177,7 +177,10 @@ v2_version_detail = { ], "id": "v2.0", "links": [ - ] + ], + "type": "text/html", + "rel": "describedby" + } } @@ -196,7 +199,7 @@ class TokensV2(Tokens): self._logger.info("RESP with status> %s" % status.HTTP_200_OK) # compose the links - v2_version_detail["links"] = [{ + v2_version_detail["version"]["links"] = [{ "href": request.META.get("REQUEST_URI", ""), "rel": "self" }] |