Skip to content
/ Rest Public

Spring Boot application with H2 DB and REST controller which expose a Swagger API catalog.

Notifications You must be signed in to change notification settings

AmirAloni/Rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot application with a REST controller, which expose a Swagger API catalog.

Data is persisted on H2 DB using JPA.

The application exposes the following APIs: (http://localhost:8080/)

  1. List of the inventory items list - (GET /api/items)

  2. Read item details - (GET /api/items/{item-number})

  3. Withdrawal quantity of a specific item from stock - (PUT /api/items/withdrawal/{item-number}/{amount})

  4. Deposit quantity of a specific item to stock - (PUT /api/items/deposit/{item-number}/{amount})

  5. Add item to stock - (POST /api/items/add/{name}/{amount}/{inventory-code})

  6. Delete an item from stock - (DELETE /api/items/{item-number})

Credentials for H2-Console are in 'Rest/src/main/resources/application.properties'

About

Spring Boot application with H2 DB and REST controller which expose a Swagger API catalog.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages