18 lines
290 B
HTTP
18 lines
290 B
HTTP
### Register a new user
|
|
POST {{baseurl}}/auth/register
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"email": "test@test.com",
|
|
"password": "password",
|
|
"role": "ADMIN"
|
|
}
|
|
|
|
### Login
|
|
POST {{baseurl}}/auth/login
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"email": "test@test.com",
|
|
"password": "password"
|
|
} |