User can request a change for an existing logistics object via PATCH request
As a user, I'd like to be able to request a change to an existing logistics object via PATCH-request.
Acceptance criteria
- Resource under the given ID (path param) is updated according to the partial resource passed in the request body.
- The PATCH request is atomar (all or nothing). In case of errors (e.g. if not all patch operations are applicable, or if the value to be patched is outdated, or if the revision number does not match), the API returns an appropriate status code and error message according to the defined error model.
- Focus is on synchronous PATCH requests only. Asynchronous PATCH-Request (status "PENDING") to be addressed later.
- Only predicates of the main LO can be patched, not embedded objects that can't be addressed precisely. Note: Embedded objects currently do not have individual IDs and the defined API allows only "string" values for patched attributes.
TODO:
- How shall the patching of anonymous objects (e.g. list elements) be handled (search/replace of values in anonymous objects vs. replacement as a whole)?
Edited by Oliver Ditz