Skip to content

Latest commit

 

History

History
67 lines (53 loc) · 1.18 KB

File metadata and controls

67 lines (53 loc) · 1.18 KB

### Sign Up POST http://localhost:4001/auth/signup Content-Type: application/json

{
"username": "username", "password": "password", "email": "[email protected]", "languageCode": "en"

}

### Login POST http://localhost:4001/auth/login Content-Type: application/json

{
"username": "username", "password": "password"

}

### Logout (Remove refresh token) POST http://localhost:4001/auth/logout Content-Type: application/json

{
"token": "token"

}

### Refresh Token POST http://localhost:4001/auth/token Content-Type: application/json

{
"token": "token"

}

### Verify Token GET http://localhost:4001/auth/verify?token=token

### Forget Password POST http://localhost:4001/auth/forget-password Content-Type: application/json

{
"username": "username", "languageCode": "en"

}

### Reset Password POST http://localhost:4001/auth/reset-password Content-Type: application/json

{
"username": "username", "password": "password", "token": "token"

}

### Delete User DELETE http://localhost:4001/auth/user?username=username Content-Type: application/json Authorization: Bearer token

### Get users GET http://localhost:4001/auth/users Content-Type: application/json Authorization: Bearer token