From abe9adf4708aa7d04ea6ff158f06dac94259ba02 Mon Sep 17 00:00:00 2001 From: Eoghan Glynn Date: Sat, 28 Jan 2012 22:29:32 +0000 Subject: Fix WADL/PDF docs referenced in describedby links These compute API links were broken, previously referring to Rackspace URLs with s/v1.0/v1.1/ The links now correctly reference long-lived locations on docs.openstack.org. Change-Id: I10efca2868a05982a1783688e374060acf1d0a69 --- nova/api/openstack/compute/versions.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'nova/api') diff --git a/nova/api/openstack/compute/versions.py b/nova/api/openstack/compute/versions.py index adc083caf..3ba8d80d7 100644 --- a/nova/api/openstack/compute/versions.py +++ b/nova/api/openstack/compute/versions.py @@ -24,6 +24,16 @@ from nova.api.openstack import wsgi from nova.api.openstack import xmlutil +LINKS = { + 'v2.0': { + 'pdf': 'http://docs.openstack.org/' + 'api/openstack-compute/1.1/os-compute-devguide-1.1.pdf', + 'wadl': 'http://docs.openstack.org/' + 'api/openstack-compute/1.1/wadl/os-compute-1.1.wadl', + }, +} + + VERSIONS = { "v2.0": { "id": "v2.0", @@ -33,14 +43,12 @@ VERSIONS = { { "rel": "describedby", "type": "application/pdf", - "href": "http://docs.rackspacecloud.com/" - "servers/api/v1.1/cs-devguide-20110125.pdf", + "href": LINKS['v2.0']['pdf'], }, { "rel": "describedby", "type": "application/vnd.sun.wadl+xml", - "href": "http://docs.rackspacecloud.com/" - "servers/api/v1.1/application.wadl", + "href": LINKS['v2.0']['wadl'], }, ], "media-types": [ -- cgit