crm-rest-api/http/http-test.http

18 lines
412 B
HTTP

### Register User
POST http://localhost:8080/api/v1/auth/register
Content-Type: application/json
{
"firstname": "Ali",
"lastname": "Bouali",
"email": "alibou21@mail.com",
"password": "password",
"role": "ADMIN"
}
> {% client.global.set("auth-token", response.body.access_token); %}
### Query the Demo endpoint
GET http://localhost:8080/api/v1/demo-controller
Authorization: Bearer {{auth-token}}