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

@@ -52,4 +52,5 @@
### API
- Added a new endpoint `/stock/locations/{locationId}/entries` to get all stock entries of a given location (similiar to the already existing endpoint `/stock/products/{productId}/entries`)
- Endpoint `/recipes/{recipeId}/consume`: Fixed that consuming partially fulfilled recipes was possible, although an error was already returned in that case (and potentially some of the in-stock ingredients were consumed in fact)