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

UserController #3

Open
7 tasks
stachu540 opened this issue Jul 16, 2023 · 0 comments
Open
7 tasks

UserController #3

stachu540 opened this issue Jul 16, 2023 · 0 comments
Assignees

Comments

@stachu540
Copy link
Owner

Users

  • @GET("/users/{id}") #getUser(long id) -> Response<User>
  • @POST("/users") #register(CreateUserDTO dto) -> Response<User> - 201
  • @GET("/users") #fetch(Pageable pageable) -> Response<Collection<User>> - 403 if not ADMIN / SUPER_ADMIN
  • @PATCH("/users/{id}") update(long id, UserUpdateDTO dto) -> Response<User> - with password change
  • @DELETE("/users/{id}") delete(long id) -> Response<?> - 204

Login

  • @POST("/login") #login(String user, String password) -> Response<SessionToken>
  • @GET("/login") #check(String token) -> Response<SessionToken>
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