This Route updates a User with a "newEmail" or "newPassword" provided.
http://localhost:8080/user/
PATCH
application/json
| Name |
Type |
| "newEmail" |
String? |
| "newPassword" |
String? |
Header:
| Name |
Type |
| "token" |
String! |
| Code |
Description |
Reason |
| 200 |
OK |
Successfully Updated |
| 400 |
Bad Request |
UserId and newPassword or newEmail not provided |
http://localhost:8080/user/
Headers
| Content-Type |
Value |
| token |
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySUQiOiI2Mjc5MjVjYzE5NDQyNGQ0YTY4YmRmZTUiLCJpYXQiOjE2NTIxMDY3MDYsImV4cCI6MTY1MjE5MzEwNn0.Rx3MiJlVXty609uTzZuuYj9Hys8jSpw-szl60OB0Mzo |
{
"email": "mwa@gmail.com"
}
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
This Route deletes the currently Logged-in User based on his UserId that is provided trough the Header "token".
http://localhost:8080/user/
DELETE
application/json
Header:
| Name |
Type |
| "token" |
String! |
| Code |
Description |
Reason |
| 200 |
OK |
Successfully Deleted. |
| 400 |
Bad Request |
UserId not provided |
http://localhost:8080/user/
Headers
| Content-Type |
Value |
| token |
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySUQiOiI2Mjc5MjVjYzE5NDQyNGQ0YTY4YmRmZTUiLCJpYXQiOjE2NTIxMDgzNjQsImV4cCI6MTY1MjE5NDc2NH0.3EOIehxJhFgrkVUvlzKxqbrcieX3an_j43bAw8qhF_k |
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
Powered By: postman-to-markdown