vikunja-api/REST-Tests/auth.http

26 lines
409 B
Text
Raw Normal View History

2018-07-25 22:26:53 +02:00
### Authorization by token, part 1. Retrieve and save token.
POST http://localhost:8080/api/v1/login
Content-Type: application/json
{
"user": "user",
"password": "1234"
}
> {% client.global.set("auth_token", response.body.token); %}
2018-07-26 09:53:32 +02:00
###
2018-09-06 08:42:18 +02:00
## Register
POST http://localhost:8080/api/v1/register
Content-Type: application/json
{
"username": "user3",
"password": "1234",
"email": "3@knt.li"
}
###