Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages