Expose recipes_pos_resolved via the API (read only) (closes #2258)

This commit is contained in:
Bernd Bestel 2023-06-21 22:06:46 +02:00
parent 1496a58673
commit 297cc57244
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 7 additions and 3 deletions

View File

@ -115,5 +115,6 @@
- Added a new field/property `default_quantity_unit_consume` (contains the quantity unit object of the product's "Default quantity unit consume") - Added a new field/property `default_quantity_unit_consume` (contains the quantity unit object of the product's "Default quantity unit consume")
- The following entities are now also available via the endpoint `/objects/{entity}` (only listing, no edit) - The following entities are now also available via the endpoint `/objects/{entity}` (only listing, no edit)
- `quantity_unit_conversions_resolved` (returns all final/resolved conversion factors per product and any directly or indirectly related quantity units) - `quantity_unit_conversions_resolved` (returns all final/resolved conversion factors per product and any directly or indirectly related quantity units)
- `recipes_pos_resolved` (returns stock fulfilment information for all recipe ingredients)
- The endpoint `/batteries` now also returns the corresponding battery object (as field/property `battery`) - The endpoint `/batteries` now also returns the corresponding battery object (as field/property `battery`)
- API keys can now have a description (to e.g. track where the corresponding key is used) - API keys can now have a description (to e.g. track where the corresponding key is used)

View File

@ -5800,7 +5800,8 @@
"meal_plan_sections", "meal_plan_sections",
"products_last_purchased", "products_last_purchased",
"products_average_price", "products_average_price",
"quantity_unit_conversions_resolved" "quantity_unit_conversions_resolved",
"recipes_pos_resolved"
] ]
}, },
"ExposedEntityNoListing": { "ExposedEntityNoListing": {
@ -5819,7 +5820,8 @@
"chores_log", "chores_log",
"products_last_purchased", "products_last_purchased",
"products_average_price", "products_average_price",
"quantity_unit_conversions_resolved" "quantity_unit_conversions_resolved",
"recipes_pos_resolved"
] ]
}, },
"ExposedEntityNoDelete": { "ExposedEntityNoDelete": {
@ -5831,7 +5833,8 @@
"chores_log", "chores_log",
"products_last_purchased", "products_last_purchased",
"products_average_price", "products_average_price",
"quantity_unit_conversions_resolved" "quantity_unit_conversions_resolved",
"recipes_pos_resolved"
] ]
}, },
"ExposedEntityEditRequiresAdmin": { "ExposedEntityEditRequiresAdmin": {