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

User CRUD endpoints on backend #5

Closed
mozsarmate opened this issue Jul 11, 2024 · 0 comments · Fixed by #19
Closed

User CRUD endpoints on backend #5

mozsarmate opened this issue Jul 11, 2024 · 0 comments · Fixed by #19
Assignees
Labels

Comments

@mozsarmate
Copy link
Contributor

mozsarmate commented Jul 11, 2024

Endpoints:

GET /users

  • This should return all the users and it should be pageable. (Normal users read only one, most of the time)
  • The list returned needs to be sorted by name (maybe there should be a sort_by parameter?)
  • We need to allow filtering
  • For pagination it should accept a page parameter for the current page index (starting from 0) and a page_size parameter for the number of items on each page
  • The backend needs to check if the current user has permission to do it

GET /users/me

  • Returns the current user
  • It somewhat collides with the next endpoint, but all the usersId-s are numbers, so it shouldn't be a problem

GET /users/{userId}

  • The backend needs to check if the current user has permission to do it

PATCH /users/{userId}

  • Modifies a user profile
  • The backend needs to check if the current user has permission to do it
@Dkrisztan Dkrisztan self-assigned this Aug 7, 2024
@mozsarmate mozsarmate linked a pull request Aug 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants