summaryrefslogtreecommitdiffstats
path: root/share/newton_base/proxy/identityV3.py
diff options
context:
space:
mode:
Diffstat (limited to 'share/newton_base/proxy/identityV3.py')
-rw-r--r--share/newton_base/proxy/identityV3.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/share/newton_base/proxy/identityV3.py b/share/newton_base/proxy/identityV3.py
index 5d502831..b31efc0c 100644
--- a/share/newton_base/proxy/identityV3.py
+++ b/share/newton_base/proxy/identityV3.py
@@ -62,6 +62,12 @@ class Tokens(APIView):
self._logger.debug("data> %s" % request.data)
self._logger.info("RESP with status> %s" % status.HTTP_200_OK)
+
+ # compose the links
+ v3_version_detail["links"] = [{
+ "href": request.META.get("REQUEST_URI", ""),
+ "rel": "self"
+ }]
return Response(data=v3_version_detail, status=status.HTTP_200_OK)
def post(self, request, vimid=""):
@@ -189,6 +195,11 @@ class TokensV2(Tokens):
self._logger.debug("TokensV2--get::META> %s" % request.META)
self._logger.info("RESP with status> %s" % status.HTTP_200_OK)
+ # compose the links
+ v2_version_detail["links"] = [{
+ "href": request.META.get("REQUEST_URI", ""),
+ "rel": "self"
+ }]
return Response(data=v2_version_detail, status=status.HTTP_200_OK)
def post(self, request, vimid=""):