21 lines
439 B
HTTP
21 lines
439 B
HTTP
### Register a new user
|
|
POST http://localhost:8080/auth/register/
|
|
content-type: application/json
|
|
|
|
{
|
|
"email": "test@example.com",
|
|
"name" : "Test User",
|
|
"password": "examplePassword",
|
|
"password_confirm": "examplePassword"
|
|
}
|
|
|
|
### Login
|
|
POST http://localhost:8080/auth/login/
|
|
content-type: application/json
|
|
|
|
{
|
|
"email": "test@example.com",
|
|
"password": "examplePassword"
|
|
}
|
|
|
|
> {% client.global.set("auth_token", response.body.jwt); %} |