14 lines
272 B
HTTP
14 lines
272 B
HTTP
# Register a new user
|
|
POST http://localhost:8081/login
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"username": "hubert",
|
|
"password": "test"
|
|
}
|
|
|
|
> {% client.global.set("token", response.body.token); %}
|
|
|
|
### Get notes
|
|
GET http://localhost:8081/notes
|
|
Authorization: Bearer {{token}} |