REST API for alarm app, which accept JSON for request payload and also send responses to JSON and use JWT authentication. Also use as database PostgreSQL in production and for tests h2 in memory database. Server is running on AWS in Docker container.
Request to get JWT token should by to /api/auth
and have JSON body with username and password.
Token is valid 30 minutes.
If you havent got accout you should send request to /api/newaccount
witch JSON body witch username and password and email.
All request shoud have header:
Authorization
Bearer JWT_BEARER_TOKEN
Base URL /api/v1/
Full swager JSON documentation available: v2 v3
Full swager ui documentation available on http://alarmrestapi.eu-central-1.elasticbeanstalk.com/swagger-ui