|
Post by AMI_Mani on Aug 21, 2019 18:55:43 GMT
Hi, As per Redfish 1.7 specification, /redfish/v1 needsto redirect to /redfish/v1/ URI Associated Redfish-defined URI
/redfish/v1 /redfish/v1/ But as per OpenAPI(openapi.yaml) we need to return response 200 for bot /redfish/v1, /redfish/v1/
openapi: 3.0.1 paths: /redfish/v1: get: responses: '200':
/redfish/v1/: get: responses: '200': content: application/json:
Please conclude which is correct to follow for Service root response
Thanks, Mani
|
|
|
Post by mraineri on Aug 22, 2019 19:08:12 GMT
Redirection is not required for "/redfish/v1". Redirection is an option, but it also allows for a Service to "Treat it as the equivalent URI to the associated Redfish-defined URI".
200 OK is allowed for both URIs.
|
|
|
Post by AMI_Mani on Sept 2, 2019 18:29:27 GMT
Hi, Thanks for your reply. But as per specification, we need to redirect to /redfish/v1/ if request comes to /redfish/v1
Copied below from specification section 6.7. Redfish-defined URIs and relative reference rules • Redirect it to the associated Redfish-defined URI.
• Treat it as the equivalent URI to the associated Redfish-defined URI:
URI Associated Redfish-defined URI
/redfish/v1 /redfish/v1/
In this case how we can return 200 for redfish/v1, please confirm
Thanks, Mani
|
|
|
Post by jautor on Sept 3, 2019 22:04:05 GMT
Hi, Thanks for your reply. But as per specification, we need to redirect to /redfish/v1/ if request comes to /redfish/v1 Copied below from specification section 6.7. Redfish-defined URIs and relative reference rules• Redirect it to the associated Redfish-defined URI.
• Treat it as the equivalent URI to the associated Redfish-defined URI: URI Associated Redfish-defined URI
/redfish/v1 /redfish/v1/ In this case how we can return 200 for redfish/v1, please confirm Thanks, Mani You missed the sentence directly above those two bullet-listed options: "In addition, the service shall process the following URI without a trailing slash in one of these ways:" - so you can choose to either redirect or return the resource (200) as if the requested URI was /redfish/v1/ Jeff
|
|
|
Post by AMI_Mani on Sept 15, 2019 17:28:20 GMT
Hi Jeff, Thanks for point out me two ways of implementation and we need to go with second option, if needs to satisfy OpenAPI conformance
Treat it as the equivalent URI to the associated Redfish-defined URI
Thanks, Mani
|
|