DMTF / Redfish-Protocol-Validator

The Redfish Protocol Validator tests the HTTP protocol behavior of a Redfish service to validate that it conforms to the Redfish specification.
Other
14 stars 12 forks source link

POST responses do not always need a response body #34

Closed mraineri closed 3 years ago

mraineri commented 3 years ago

The tool fails the following tests when verifying response bodies for POST operations to create new resources:

While this is absolutely true for GET responses, POST for creating a new resource does not require any response body. The spec currently allows for a 201 Created to be returned without a body (with some exceptions that are called out in the specification).

For POST (create) requests, the response body may include a representation of the newly created resource.