mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Expose stock
and stock_current_locations
also via generic entity interaction API endpoints (no edit) (closes #1147)
This commit is contained in:
parent
59aad1c180
commit
bfbaa7e9d5
@ -210,7 +210,10 @@
|
||||
- New endpoint `/stock/shoppinglist/add-expired-products` to add all currently in-stock but expired products to a shopping list
|
||||
- New endpoints GET/POST/PUT `/users/{userId}/permissions` for the new user permissions feature mentioned above
|
||||
- New endpoint '/user` to get the currently authenticated user
|
||||
- The stock journal (entity `stock_log`) is now also available via the endpoint `/objects/{entity}` (=> `/objects/stock_log`)
|
||||
- The following entities are now also available via the endpoint `/objects/{entity}` (only listing, no edit)
|
||||
- `stock_log` (the stock journal)
|
||||
- `stock` (the "raw" stock entries)
|
||||
- `stock_current_locations` (info how much of each product is currently stored at which location)
|
||||
- Performance improvements of the `/stock/products/*` endpoints (thanks @fipwmaqzufheoxq92ebc)
|
||||
- The endpoint `/stock/products/{productId}/locations` now also has an optional query parameter `include_sub_products` to optionally also return locations of sub products of the given product
|
||||
- The following endpoints now have an optional request body parameter `allow_subproduct_substitution` to consume/open any child product when the given product is a parent product and currently not in stock
|
||||
|
@ -3828,7 +3828,9 @@
|
||||
"userentities",
|
||||
"userobjects",
|
||||
"meal_plan",
|
||||
"stock_log"
|
||||
"stock_log",
|
||||
"stock",
|
||||
"stock_current_locations"
|
||||
]
|
||||
},
|
||||
"ExposedEntityNoListing": {
|
||||
@ -3841,7 +3843,9 @@
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"stock_log",
|
||||
"api_keys"
|
||||
"api_keys",
|
||||
"stock",
|
||||
"stock_current_locations"
|
||||
]
|
||||
},
|
||||
"ExposedEntityEditRequiresAdmin": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user