16 lines
389 B
HTTP
16 lines
389 B
HTTP
### Authorization by token, part 1. Retrieve and save token.
|
|
POST http://localhost:1073/api/v1/user/auth
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"username": "admin",
|
|
"password": "admin"
|
|
}
|
|
|
|
> {% client.global.set("auth_token", response.body.token); %}
|
|
|
|
### Authorization by token, part 2. Use token to authorize.
|
|
GET http://localhost:1073/api/v1/user
|
|
Authorization: Bearer {{auth_token}}
|
|
|
|
### |