NJsonApiCore
NJsonApiCore copied to clipboard
Resource configuration, when adding a resource, all properties must have get and set
It must be possible to build a resource that has get properties, which you cannot set (such as calculated properties). If the client tries to change the "get only" properties then the system should use meta information to indicate that they are read only so that the client isn't under the illusion that they can be changed.
This solution isn't covered directly by the jsonapi specification, so I have started a conversation with the community. http://discuss.jsonapi.org/t/post-patch-read-only-attibutes/522