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"
}]
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",
],
"id": "v2.0",
"links": [
- ]
+ ],
+ "type": "text/html",
+ "rel": "describedby"
+
}
}
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"
}]