From 73328060cc5fd436ce0552088782e6375f954105 Mon Sep 17 00:00:00 2001 From: Jim Rollenhagen Date: Wed, 15 Mar 2017 16:15:03 -0400 Subject: [PATCH] Fix API doc URL in GET / response The existing URL has a redirect to another URL[0], which has a message that it has been moved to yet another URL[1]. Fix it so it's just one link. Also use https while we're in here. [0] https://docs.openstack.org/developer/ironic/webapi/v1.html [1] https://docs.openstack.org/developer/ironic/dev/webapi.html Change-Id: I900e0a7ad84dfcfeb551d4836bf156790706803c --- api-ref/source/samples/api-v1-root-response.json | 2 +- ironic/api/controllers/v1/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api-ref/source/samples/api-v1-root-response.json b/api-ref/source/samples/api-v1-root-response.json index 7b691bb7c0..0a0a11a2f5 100644 --- a/api-ref/source/samples/api-v1-root-response.json +++ b/api-ref/source/samples/api-v1-root-response.json @@ -36,7 +36,7 @@ "rel": "self" }, { - "href": "http://docs.openstack.org/developer/ironic/dev/api-spec-v1.html", + "href": "https://docs.openstack.org/developer/ironic/dev/webapi.html", "rel": "describedby", "type": "text/html" } diff --git a/ironic/api/controllers/v1/__init__.py b/ironic/api/controllers/v1/__init__.py index e6c23a1c7a..f3326d2db6 100644 --- a/ironic/api/controllers/v1/__init__.py +++ b/ironic/api/controllers/v1/__init__.py @@ -97,9 +97,9 @@ class V1(base.APIBase): v1.links = [link.Link.make_link('self', pecan.request.public_url, 'v1', '', bookmark=True), link.Link.make_link('describedby', - 'http://docs.openstack.org', + 'https://docs.openstack.org', 'developer/ironic/dev', - 'api-spec-v1.html', + 'webapi.html', bookmark=True, type='text/html') ] v1.media_types = [MediaType('application/json',