Expose stock and stock_current_locations also via generic entity interaction API endpoints (no edit) (closes #1147)

This commit is contained in:
Bernd Bestel 2020-12-12 10:59:36 +01:00
parent 59aad1c180
commit bfbaa7e9d5
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 10 additions and 3 deletions

View File

@ -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

View File

@ -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": {