-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REST PATCH json protocol #145
Comments
Another resource on the topic: |
I didn't know about this. Sounds like we could include support for that in the @smyrman thoughts? |
I think it's a good idea if someone want to implement it relying on content negotiation 👍 |
I want to start working on this, however we need to make a plan. I want to add this, because patching large documents is not convenient if we pass the document left and right constantly. Using JSON-Patch is much more convenient. So my plan is:
Guys apart from supplying the right |
For point 5, I think it would be better to make it explicit. Yes, you could argue it's possible to derive the new object on the client when supplying the E-tag for concurrency control, but it may still be convenient to get a response. Maybe a header |
Actually there is a standard way of doing these ( I think ). Basically the client sets HTTP header of EDIT: Okay it is EDIT2: It seems that M$ has another view how this should work: |
Negotiation is probably not the right word; checking the |
Currently
rest-layer
implements HTTP PATCH method in a very crude way, i.e. it only replaces top level fields. How about adding something more advanced like: http://jsonpatch.com/https://tools.ietf.org/html/rfc6902
It can deeply patch JSON documents, and is supported by many languages, Go included.
The text was updated successfully, but these errors were encountered: