- Java 21
- Docker
- Clone the repository
- Run
docker-compose up
inside docker folder - Create quota_db database
- Run the application
- Access the application at http://localhost:8080
Creating an user:
POST http://localhost:8080/users
Content-Type: application/json
{
"firstName": "name",
"lastName": "name"
}
Consuming quota:
POST http://localhost:8080/quota/users/{userId}
Content-Type: application/x-www-form-urlencoded
Checking quota quota:
GET http://localhost:8080/quota/users