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

Update user-role grants and revoke handler #168

Open
TanmoySG opened this issue Dec 27, 2024 · 0 comments
Open

Update user-role grants and revoke handler #168

TanmoySG opened this issue Dec 27, 2024 · 0 comments

Comments

@TanmoySG
Copy link
Owner

requestBody does not have well-defined semantics for GET, HEAD and DELETE operations

DELETE requests do not support a request body.

For op DELETE {{URL}}/api/users/revoke to revoke a role from a user, is not ideal to have a request body.

TODO

  • Update the request handler for DELETE op and other user-role ops (grant and revoke) to make it standardized.
  • Maybe POST {{URL}}/api/users/{userId}/grant with a Request body containing the role to grant, and entities
  • Maybe PATCH {{URL}}/api/users/{userId}/revoke with a Request body containing the role to revoke, and entities
  • Maybe PATCH {{URL}}/api/users/{userId}/update with a Request body containing the role to patch, and entities
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

1 participant