An inventory management application for a logistics company
-
Install Docker
Follow the steps in this link to install docker in your system https://docs.docker.com/get-docker/
- docker-compose up
-
Ctrl+C
-
docker-compose down
- This is the root url where the API is hosted. Prepend this root before all requests
Lists all items in the inventory with name and warehouse details
{
"items": [
{
"id": 1,
"name": "Item 2",
"warehouseId": 1,
"warehouseName": "RDU"
},
{
"id": 2,
"name": "Item 1",
"warehouseId": 2,
"warehouseName": "JFK"
}
],
"count": 2
}Adds a item to the inventory
{
"name": "Item 1",
"warehouseId": 2
}Item successfully created
Updates the details of an item in the inventory
Provide atleast one of the fields
{
"name": "Item 1",
"warehouseId": 2
}Item successfully edited
Deletes an item from inventory
Item successfully deleted
Lists all warehouses
{
"warehouses": [
{
"id": 1,
"name": "RDU"
},
{
"id": 2,
"name": "JFK"
}
],
"count": 2
}Adds a warehouse
{
"name": "JFK"
}Warehouse successfully created
Updates the name of a warehouse
{
"name": "JFK"
}Warehouse successfully edited
Deletes an warehouse
Warehouse successfully deleted