Users - nperez9/api-auth GitHub Wiki

Users

The users Crud is only available when the users are login (this will require an jwt token).

  • You can only use this crud whit other users (beside the user actually logged in) only getting Admin role
  • All the other users can only update his profile

Endpoints:

  • GET /users Get a list of all users with filters and pagination (Only admin)
  • GET /users/:id Get one user info (this will not include password)
  • PATCH /users/:id Can edit you user (any user if you are admin)
  • DELETE /users/:id Deletes a user (Only admin)
  • PATCH /users/role can change the user role (Only admin)