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
This commit is contained in:
parent
a2cea8f2dc
commit
73328060cc
@ -36,7 +36,7 @@
|
|||||||
"rel": "self"
|
"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",
|
"rel": "describedby",
|
||||||
"type": "text/html"
|
"type": "text/html"
|
||||||
}
|
}
|
||||||
|
@ -97,9 +97,9 @@ class V1(base.APIBase):
|
|||||||
v1.links = [link.Link.make_link('self', pecan.request.public_url,
|
v1.links = [link.Link.make_link('self', pecan.request.public_url,
|
||||||
'v1', '', bookmark=True),
|
'v1', '', bookmark=True),
|
||||||
link.Link.make_link('describedby',
|
link.Link.make_link('describedby',
|
||||||
'http://docs.openstack.org',
|
'https://docs.openstack.org',
|
||||||
'developer/ironic/dev',
|
'developer/ironic/dev',
|
||||||
'api-spec-v1.html',
|
'webapi.html',
|
||||||
bookmark=True, type='text/html')
|
bookmark=True, type='text/html')
|
||||||
]
|
]
|
||||||
v1.media_types = [MediaType('application/json',
|
v1.media_types = [MediaType('application/json',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user