REST Patch using json-patch
REST Patch using json-patch
Our architecture is like the following:
AngularJS client --> BFF --> Platform service --> Database
We have a BFF (Backend for front-end) layer whose APIs are tailored to the client.
For an update the client currently sends a subset of the entity's fields that it wants to change. Between the BFF and the platform service I'd like to leverage HTTP PATCH and json-patch to have a generic update API.
Do I need to manually create the json-patch request based on the input from the client with a list of add ops? I saw the zjsonpatch library and the json-patch library libraries but they seem do a comparison of desired and current state to generate a patch request but I don't want the additional overhead of retrieving the current state.
add
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.