Replies: 1 comment
-
consider this discussion of patch requests to odata endpoints, from the spec notice the spec enforces the paylaod, and Delta.Apply() is designed to work with such payloads and nothing else, as per the spec however there's nothing to stop a controller from responding to an odata url, say a patch, and accepting a jsonpatch payload so you'd have something like
in this scenario unless you wanted to for some reason you would work with JsonPatchDocument, not Delta to generate the sql expression yes? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Title is basically the question.
https://docs.microsoft.com/en-us/aspnet/core/web-api/jsonpatch?view=aspnetcore-6.0
JsonPatchDocument<T>
is a bit more powerful and expressive than aDelta<T>
in that it allows for arbitrary link manipulation and hierarchical changes.I don't see any explicit mention or evidence anywhere that OData works with it, but I've also not tried myself.
If it doesn't, will it ever do? What is the recommended alternative? Batch calls?
Beta Was this translation helpful? Give feedback.
All reactions