Data is persisted on H2 DB using JPA.
The application exposes the following APIs: (http://localhost:8080/)
-
List of the inventory items list - (GET /api/items)
-
Read item details - (GET /api/items/{item-number})
-
Withdrawal quantity of a specific item from stock - (PUT /api/items/withdrawal/{item-number}/{amount})
-
Deposit quantity of a specific item to stock - (PUT /api/items/deposit/{item-number}/{amount})
-
Add item to stock - (POST /api/items/add/{name}/{amount}/{inventory-code})
-
Delete an item from stock - (DELETE /api/items/{item-number})
Credentials for H2-Console are in 'Rest/src/main/resources/application.properties'