-
Login
- Route:
/backend/v1/auth/login
- Method: POST
- Version: 1
- Format: {"email": "[email protected]","password":"Thepassword123$"}
- Route:
-
Register
- Route:
/backend/v1/auth/register
- Method: POST
- Version: 1
- Format: {"email": "[email protected]", "firstName": "Zion", "lastName": "Umoh", "password":"Thepassword123$", "role":"admin"}
- Route:
- Get All Users
- Route:
/backend/v1/users
- Method: GET
- Route:
-
Create Inventory
- Route:
/backend/v1/inventory/create
- Method: POST
- Version: 1
- Format: {"name": "Spices"}
- Route:
-
Get All Inventories
- Route:
/backend/v1/inventory
- Method: GET
- Version: 1
- Route:
-
Get Inventory by ID
- Route:
/backend/v1/inventory/:id
- Method: GET
- Version: 1
- Route:
-
Update Inventory by ID
- Route:
/backend/v1/inventory/:id
- Method: PATCH
- Version: 1
- Format: { "name": "Fruits Side"}
- Route:
-
Delete Inventory by ID
- Route:
/backend/v1/inventory/:id
- Method: DELETE
- Version: 1
- Route:
-
Create Stock
- Route:
/backend/v1/stock/create
- Method: POST
- Version: 1
- Format: { "name": "Candy kanes", "inventoryId": "2df2b4ec-1265-4250-8b7e-6b609dab2bff" "imageURL": "candy_kanes.jpg", "minStock": 3, "maxStock": 20, "quantity": 15, "unitPrice": 20, "location": "Freezer B", "expirationDate": "2024-09-09" }
- Route:
-
Get All Stocks
- Route:
/backend/v1/stock
- Method: GET
- Version: 1
- Route:
-
Get Stock by ID
- Route:
/backend/v1/stock/:id
- Method: GET
- Version: 1
- Route:
-
Update Stock by ID
- Route:
/backend/v1/stock/:id
- Method: PATCH
- Version: 1
- Format: {"name": "Candy kanes Christmas", "inventoryId": "2df2b4ec-1265-4250-8b7e-6b609dab2bff", "imageURL": "candy_kanes.jpg", "minStock": 3, "maxStock": 20, "quantity": 15, "unitPrice": 20, "location": "Freezer B", "expirationDate": "2024-09-09" }
- Route:
-
Delete Stock by ID
- Route:
/backend/v1/stock/:id
- Method: DELETE
- Version: 1
- Route: