InventoryController
| Base path | /api/inventory |
| Module | Inventory & Portal |
| Endpoints | 38 |
| OpenAPI tag | Inventory |
| Source | backend/src/main/java/com/motorph/payroll/controller/InventoryController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
GET | /api/inventory/dashboard | inventory.dashboard.view | getDashboard() |
GET | /api/inventory/categories | inventory.items.view | listCategories() |
POST | /api/inventory/categories | inventory.items.manage | createCategory() |
PUT | /api/inventory/categories/{id} | inventory.items.manage | updateCategory() |
DELETE | /api/inventory/categories/{id} | inventory.items.manage | deleteCategory() |
GET | /api/inventory/items | inventory.items.view | listItems() |
GET | /api/inventory/items/{id} | inventory.items.view | getItem() |
GET | /api/inventory/items/sku/{sku} | inventory.items.view | getItemBySku() |
POST | /api/inventory/items | inventory.items.manage | createItem() |
PUT | /api/inventory/items/{id} | inventory.items.manage | updateItem() |
DELETE | /api/inventory/items/{id} | inventory.items.manage | deleteItem() |
GET | /api/inventory/stock | inventory.stock.view | listStock() |
GET | /api/inventory/stock/low | inventory.stock.view | listLowStock() |
GET | /api/inventory/stock/transactions | inventory.stock.view | listTransactions() |
POST | /api/inventory/stock/transactions | inventory.stock.manage | createTransaction() |
GET | /api/inventory/suppliers | inventory.suppliers.view | listSuppliers() |
GET | /api/inventory/suppliers/{id} | inventory.suppliers.view | getSupplier() |
POST | /api/inventory/suppliers | inventory.suppliers.manage | createSupplier() |
PUT | /api/inventory/suppliers/{id} | inventory.suppliers.manage | updateSupplier() |
DELETE | /api/inventory/suppliers/{id} | inventory.suppliers.manage | deleteSupplier() |
GET | /api/inventory/warehouses | inventory.locations.view | listWarehouses() |
GET | /api/inventory/warehouses/{id} | inventory.locations.view | getWarehouse() |
POST | /api/inventory/warehouses | inventory.locations.manage | createWarehouse() |
PUT | /api/inventory/warehouses/{id} | inventory.locations.manage | updateWarehouse() |
DELETE | /api/inventory/warehouses/{id} | inventory.locations.manage | deleteWarehouse() |
GET | /api/inventory/locations | inventory.locations.view | listAllLocations() |
GET | /api/inventory/warehouses/{warehouseId}/locations | inventory.locations.view | listLocations() |
POST | /api/inventory/locations | inventory.locations.manage | createLocation() |
PUT | /api/inventory/locations/{id} | inventory.locations.manage | updateLocation() |
DELETE | /api/inventory/locations/{id} | inventory.locations.manage | deleteLocation() |
PATCH | /api/inventory/locations/{id}/deactivate | inventory.locations.manage | deactivateLocation() |
GET | /api/inventory/warehouses/{id}/location-tree | inventory.locations.view | getLocationTree() |
GET | /api/inventory/warehouses/{id}/stock-by-location | inventory.locations.view | getStockByLocation() |
GET | /api/inventory/receiving | inventory.receiving.view | listReceivings() |
GET | /api/inventory/receiving/{id} | inventory.receiving.view | getReceiving() |
POST | /api/inventory/receiving | inventory.receiving.manage | createReceiving() |
PATCH | /api/inventory/receiving/{id}/complete | inventory.receiving.manage | completeReceiving() |
PATCH | /api/inventory/receiving/{id}/cancel | inventory.receiving.manage | cancelReceiving() |
Call chain
10 of 11 reachable repositories shown.
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: InventoryDashboardService, InventoryItemService, InventoryStockService, WarehouseService, SupplierService, ItemCategoryService, PurchaseReceivingService.
Tables reached
| Entity | Table | Tenant-scoped |
|---|---|---|
| InventoryItem | inventory_item | Yes |
| InventoryLot | inventory_lot | Yes |
| InventoryStock | inventory_stock | Yes |
| ItemCategory | item_category | Yes |
| ItemSerial | item_serial | Yes |
| PurchaseReceiving | purchase_receiving | Yes |
| StockTransaction | stock_transaction | Yes |
| Supplier | supplier | Yes |
| User | users | — |
| Warehouse | warehouse | Yes |
| WarehouseLocation | warehouse_location | Yes |
Generated page
This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.