Simple exercise on login use case of application
- POST /v1/login
- header: authorization->authKey (Base64 encoding of email and password)
- JWT token in response example
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Inh5ekBtYWlsLmNvbSIsInBhc3N3b3JkIjoiWFlaIiwiaWF0IjoxNTE2MjM5MDIyfQ.afp1lPZAQUCQaoCJ1VsawPmjuNPoijhW4SDMleOFWHE"
}
- GET /v1/user
- header: auth_token->token (JWT response from login)
{
"name": "andor"
}
Reference: