|
Post by puwen on May 25, 2022 12:25:53 GMT
Hi all,
I found this description in [12.2 Asynchronous operations] of the Redfish Spec.
So my understanding is that HTTP GET/PUT and PATCH must be synchronous. HTTP POST/DELETE follows the project design, asynchronous/synchronous is acceptable.
And I can put it another way: The result of HTTP PATCH (GET/PUT) operation cannot be represented by [Task Resource]. Or the HTTP PATCH response cannot contain a "Location" header.
If there is any misunderstanding, please correct me, thank you.
BR, Puwen
|
|
|
Post by mraineri on May 25, 2022 18:50:51 GMT
GET, PUT, and PATCH should be synchronous; this is a service recommendation and is not mandatory. Based on the implementation, hardware architecture, and other constraints, you may need to turn one of these operations into a task. Perhaps a PATCH on a particular resource requires the service to perform lengthy communication with other devices that would exceed typical HTTP timeouts.
However, since there is no requirement that particular operations are synchronous (only recommendations and not mandatory requirements), we have a client requirement to be prepared to handle tasks for any operation.
|
|
|
Post by puwen on May 26, 2022 0:55:48 GMT
Got it, thanks.
|
|