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

[Feature] Allow PUT operations similarly to PATCH requests #349

Open
fmigneault opened this issue Sep 2, 2020 · 0 comments
Open

[Feature] Allow PUT operations similarly to PATCH requests #349

fmigneault opened this issue Sep 2, 2020 · 0 comments
Assignees
Labels
enhancement Improvements in term of performance or behaviour feature New feature to be developed
Milestone

Comments

@fmigneault
Copy link
Collaborator

As of 2.0.0, all PUT requests that previously provided partial update of an object are changed to PATCH (as they should according to REST method definition).

On the other hand, we could still support PUT *if an only if the full object details are provided in the body.

For example, user creation (POST) requires user_name, password, email and (optionally) group_name.
Requesting PUT with all those parameters should allow overwrite of the details.

Obviously, necessary user-access to operations would need to be validated accordingly.
With same example, user_name cannot be updated by non-admin. Therefore, PUT should be an admin-only operation because the user_name must be provided and (possibly) changed.

@fmigneault fmigneault added enhancement Improvements in term of performance or behaviour feature New feature to be developed labels Sep 2, 2020
@fmigneault fmigneault self-assigned this Sep 2, 2020
@fmigneault fmigneault added this to the Backlog milestone May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements in term of performance or behaviour feature New feature to be developed
Projects
None yet
Development

No branches or pull requests

1 participant