]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix broken version responses
authorAndreas Jaeger <aj@suse.de>
Sat, 26 Apr 2014 16:59:33 +0000 (18:59 +0200)
committerAndreas Jaeger <aj@suse.de>
Tue, 29 Apr 2014 19:22:01 +0000 (21:22 +0200)
The version responses link to non-existing PDF and WADL files.
Remove the WADL link and replace the PDF link with a HTML link to
docs.openstack.org.

Change-Id: Id514caee32df430b616609144f52d1a58c93d9cd
Closes-Bug: #1313118
Closes-Bug: #1313116

cinder/api/versions.py

index 9981ee9705a3184c0d7c98aca725114dccc521c3..885e731aebbeac87bcd47b76f7237e5a7a1a3477 100644 (file)
@@ -35,16 +35,8 @@ _KNOWN_VERSIONS = {
         "links": [
             {
                 "rel": "describedby",
-                "type": "application/pdf",
-                "href": "http://jorgew.github.com/block-storage-api/"
-                        "content/os-block-storage-1.0.pdf",
-            },
-            {
-                "rel": "describedby",
-                "type": "application/vnd.sun.wadl+xml",
-                #(anthony) FIXME
-                "href": "http://docs.rackspacecloud.com/"
-                        "servers/api/v1.1/application.wadl",
+                "type": "text/html",
+                "href": "http://docs.openstack.org/",
             },
         ],
         "media-types": [
@@ -65,16 +57,8 @@ _KNOWN_VERSIONS = {
         "links": [
             {
                 "rel": "describedby",
-                "type": "application/pdf",
-                "href": "http://jorgew.github.com/block-storage-api/"
-                        "content/os-block-storage-1.0.pdf",
-            },
-            {
-                "rel": "describedby",
-                "type": "application/vnd.sun.wadl+xml",
-                #(anthony) FIXME
-                "href": "http://docs.rackspacecloud.com/"
-                        "servers/api/v1.1/application.wadl",
+                "type": "text/html",
+                "href": "http://docs.openstack.org/",
             },
         ],
         "media-types": [