Skip to content

g-nog/quota_api

Repository files navigation

QUOTA API

Prerequisites

  • Java 21
  • Docker

Running the Application

  1. Clone the repository
  2. Run docker-compose up inside docker folder
  3. Create quota_db database
  4. Run the application
  5. Access the application at http://localhost:8080

Making requests

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published