Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 585 Bytes

api.rest

File metadata and controls

36 lines (29 loc) · 585 Bytes

@hostname = http://localhost @port = 8080 @suffix = /api/v1 @url = {{hostname}}:{{port}}{{suffix}} @contentType = application/json

### Login POST {{url}}/auth/login Content-Type: {{contentType}}

{
"email": "[email protected]", "password": "password"

}

### Me GET {{url}}/auth/me Content-Type: {{contentType}} Authorization: Bearer {{token}}

### Refresh Token POST {{url}}/auth/refresh-token Content-Type: {{contentType}}

{
"token": "{{refreshToken}}"

}

### Register POST {{url}}/auth/register Content-Type: {{contentType}}

{
"email": "[email protected]", "password": "password"

}