- Start dependencies with
docker-compose up -d
- Start server with
make run
POST /v1/public/account/register HTTP/2
Host: localhost:5000
user-agent: insomnia/2021.4.1
content-type: application/json
accept: */*
{
"username": "Peter",
"password": "mypsw123456"
}
POST /v1/public/account/login HTTP/2
Host: localhost:5000
user-agent: insomnia/2021.4.1
content-type: application/json
accept: */*
content-length: 52
{
"username": "Peter",
"password": "mypsw123456"
}
GET /v1/api/secret HTTP/2
Host: localhost:5000
user-agent: insomnia/2021.4.1
authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2Mjc0NjA0MjQsImlkIjoiNjEwMTBmYjk5ZWFhM2Y1NjRmMjU2MDRmIn0.WaRyekr5knEtIVTFPmObYqz1lLhpX5dvjqT8f4UWsZU
content-type: application/json
accept: */*
content-length: 0
61010fb99eaa3f564f25604f