I am working on an API that allows a client document to updated under the endpoint of PUT /client/{documentId}
. As part of this document, I need to include an extra field 'ReplicateInManager' that notifies the server as to if the document needs to replicated in an external system, alongside the database for this API.
I am wondering if I am adhering to REST guidelines, as the 'ReplicateInManager' field will not be stored as part of the entity in the database. The server will read the field and if its value is true, raise actions asynchronously in other microservices, and effectively throw away the field.
My understanding is the best way to represent actions in a RESTful manner is to model the action as part of the entity, such as in this answer: https://softwareengineering.stackexchange.com/a/261647/364929
I believe in modeling the action as part of the request. However, I'm not sure if it's acceptable to then not store this field in the database entity.
/client/{documentId}?replicateInManager=true