Testing User Route API #37
Closed
manojtsx
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Here's the list of routes with tasks:
GET /
- Fetches a list of usersGET /role
- Fetches users by their rolePUT /upload-profile-picture/:id
- Uploads a profile picture for the authenticated userPUT /change-password/:id
- Changes the password of the authenticated userGET /:id
- Fetches a specific user by their IDPUT /:id
- Updates a specific user by their IDDELETE /:id
- Deletes a specific user by their IDPUT /change-email/:id
- Changes the email of the authenticated userPUT /approve-author/:id
- Approves a user as an authorPUT /change-to-editor/:id
- Changes a user's role to editorPUT /promote-admin/:id
- Promotes a user to an adminNote: Don't forget to check the changes in database after calling API each time.
Beta Was this translation helpful? Give feedback.
All reactions