Currently the patch takes as input only the payload of the request. However, the json specified in the payload might not contain a Id of the resource that we would like to update.
I propose we update the current implementation by changing the patch_object signature as following
def patch_object(self, path,payload):
This way, a server leveraging the sunfish_library_reference receives a PATCH request with a minimal payload will be able to pass a reference to the resource to be updated.
Currently the patch takes as input only the payload of the request. However, the json specified in the payload might not contain a
Id
of the resource that we would like to update.I propose we update the current implementation by changing the patch_object signature as following
This way, a server leveraging the
sunfish_library_reference
receives aPATCH
request with a minimal payload will be able to pass a reference to the resource to be updated.Example
with json
In this case, a simple server implementation will be able to handle the PATCH operation as following: