-
Notifications
You must be signed in to change notification settings - Fork 0
API Routes
KowalewskiPawel edited this page Jul 23, 2021
·
1 revision
- Signup
Name | Signup |
---|---|
Method | POST |
endpoint | <host>/users/signup |
Body | YES |
AuthHeader | NO |
Body example: { "email": "email", "password": "password", "confirmPassword": "password" }
- Login
Name | Login |
---|---|
Method | POST |
endpoint | <host>/users/login |
Body | YES |
AuthHeader | NO |
Body example: { "email": "email", "password": "password", }
- Activate
Name | Activate |
---|---|
Method | PATCH |
endpoint | <host>/users/activate |
Body | YES |
AuthHeader | NO |
Body example: { "email": "email", "code": "code", }
- Forgot Password
Name | Forgot |
---|---|
Method | PATCH |
endpoint | <host>/users/forgot |
Body | YES |
AuthHeader | NO |
Body example: { "email": "email", }
- Reset Password
Name | Reset |
---|---|
Method | PATCH |
endpoint | <host>/users/reset |
Body | YES |
AuthHeader | NO |
Body example: { "token": "token", "newPassword": "password", "confirmPassword": "password" }
- Logout
Name | Logout |
---|---|
Method | PATCH |
endpoint | <host>/users/logout |
Body | NO |
AuthHeader | YES |
AuthHeader example: Authorization: Bearer <token>