Skip to content
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

Add HTTP PATCH method to the REST APIs #4

Open
sebymiano opened this issue Sep 5, 2017 · 1 comment
Open

Add HTTP PATCH method to the REST APIs #4

sebymiano opened this issue Sep 5, 2017 · 1 comment

Comments

@sebymiano
Copy link
Member

sebymiano commented Sep 5, 2017

In the current implementation, the HTTP PUT method is used also to update the value of an element and/or collection. This is a wrong behavior because according to this url the PUT method is used to replace the element or collection, or if it does not exist, create it.

We should instead add the PATCH method, which is used to modify an existing HTTP resource.

@sebymiano sebymiano changed the title Add patc Add HTTP PATCH method to the REST APIs Sep 5, 2017
@frisso
Copy link
Member

frisso commented Sep 7, 2017

@sebymiano : please sync with Ivano, because it seems to me that "PATCH" requires a sort of "diff" in the body (i.e., what to remove, what to add). Not 100% sure, but please check with him.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants