Added a new API endpoint to get all stock entries per location

References https://www.reddit.com/r/grocy/comments/srfwfs
This commit is contained in:
Bernd Bestel
2022-02-13 20:34:49 +01:00
parent 2457c2c2fd
commit 66bd3f0d59
5 changed files with 83 additions and 0 deletions

View File

@@ -209,6 +209,7 @@ $app->group('/api', function (RouteCollectorProxy $group) {
$group->post('/stock/products/by-barcode/{barcode}/transfer', '\Grocy\Controllers\StockApiController:TransferProductByBarcode');
$group->post('/stock/products/by-barcode/{barcode}/inventory', '\Grocy\Controllers\StockApiController:InventoryProductByBarcode');
$group->post('/stock/products/by-barcode/{barcode}/open', '\Grocy\Controllers\StockApiController:OpenProductByBarcode');
$group->get('/stock/locations/{locationId}/entries', '\Grocy\Controllers\StockApiController:LocationStockEntries');
$group->get('/stock/bookings/{bookingId}', '\Grocy\Controllers\StockApiController:StockBooking');
$group->post('/stock/bookings/{bookingId}/undo', '\Grocy\Controllers\StockApiController:UndoBooking');
$group->get('/stock/transactions/{transactionId}', '\Grocy\Controllers\StockApiController:StockTransactions');