diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-02-14 18:14:09 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-02-14 18:14:09 +0000 |
| commit | b3ade08a21d154109b8cd4c3074f3611670adb1e (patch) | |
| tree | e69622f7f5003d3d0f3e78b151bf02be50f89d1c /nova/api | |
| parent | 8312dc624f89bdc9b3881f012eaf20187d437b2e (diff) | |
| parent | abe9adf4708aa7d04ea6ff158f06dac94259ba02 (diff) | |
Merge "Fix WADL/PDF docs referenced in describedby links"
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/compute/versions.py | 16 |
1 files changed, 12 insertions, 4 deletions
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": [ |
