docker pull postgres:15-alpine
Login: postgres / admin
Port: 5433
Database: socks
cd WebApi/docker-compose
docker compose up -d
/WebApi
: Swagger @ localhost:5001/swagger
Tokens -> POST /api/tokens
Tenant: root
{
"email":"admin@root.com",
"password":"123Pa$$word!"
}
See postman
for a postman collection.
Or go with an open-source & free alternative that looks exactly the same:
In Visual Studio Code:
CURL command for getting a token:
curl -X POST \
'https://localhost:5001/api/tokens' \
--header 'Accept: */*' \
--header 'tenant: root' \
--header 'Accept-Language: en-US' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "admin@root.com",
"password": "123Pa$$word!"
}'
See REST-JWT.pptx
for some general REST infos.
Or see our specific REST-JWT-Postman-DevTools session.