New additional route for User
Get user
Headers |
Required |
Description |
Bearer token |
Yes |
user token |
Edit user
Body |
Type |
Required |
username |
string |
No |
avatar |
image |
No |
newsletter |
boolean |
No |
Headers |
Required |
Description |
Bearer token |
Yes |
user token |
/user/update-password (PUT)
Edit User Password
Body |
Type |
Required |
oldPassword |
string |
Yes |
newPassword |
string |
Yes |
Headers |
Required |
Description |
Bearer token |
Yes |
user token |
Delete User
Headers |
Required |
Description |
Bearer token |
Yes |
user token |
Reset password route for User
/user/forgot-password (POST)
Request reset password
Body |
Type |
Required |
email |
string |
Yes |
/user/reset-password/:id/:token (GET)
This route can be used to check and validate before sending a reset password page to user.
Param |
Required |
Description |
id |
Yes |
User id |
token |
Yes |
User token |
/user/reset-password/:id/:token (POST)
Reset user password
Body |
Type |
Required |
password |
string |
Yes |
confirmPassword |
string |
Yes |
Param |
Required |
Description |
id |
Yes |
User id |
token |
Yes |
User token |