|
Post by ansondrain on Jun 27, 2022 14:01:59 GMT
Hi, I am confused about the Content-Type response header elaborated in ch.8 Service responses of Redfish specification 1.9. Does it mean only the 4 types (JSON/XML/YAML/SSE stream) are expected for Redfish response body? If we need to represent an error response body in string-type content, then it will not compliant with Redfish standard? Thanks
|
|
|
Post by mraineri on Jun 27, 2022 15:25:04 GMT
For everything defined in Redfish, that's correct. The reality is the vast majority of responses will be JSON. XML and YAML are limited to static schema files hosted on the service (CSDL and OpenAPI definitions), and SSE stream is limited to the SSE event stream that can be found in the event service. Any error information needs to conform to the "Error responses" clause in the Redfish Specification, which is a JSON payload. A simple string would not be conformant to the Redfish Specification.
|
|