diff --git a/controllers/OpenApiController.php b/controllers/OpenApiController.php index 14cb043c..62cfec4c 100644 --- a/controllers/OpenApiController.php +++ b/controllers/OpenApiController.php @@ -127,11 +127,11 @@ class OpenApiController extends BaseApiController "stock_log" => "StockLogEntry", "stock" => "StockEntry", /// "stock_current_locations" => , - "chores_log" => "ChoreLogEntry" + "chores_log" => "ChoreLogEntry", //"meal_plan_sections", //"products_last_purchased", //"products_average_price", - //"quantity_unit_conversions_resolved", + "quantity_unit_conversions_resolved" => "QuantityUnitConversionResolved", //"recipes_pos_resolved" ); // non-generic entity api diff --git a/grocy.openapi.json b/grocy.openapi.json index 3d14214f..f400b753 100644 --- a/grocy.openapi.json +++ b/grocy.openapi.json @@ -5724,6 +5724,41 @@ } } }, + "QuantityUnitConversionResolved": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "product_id": { + "type": "integer" + }, + "from_qu_id": { + "type": "integer" + }, + "from_qu_name": { + "type": "string" + }, + "from_qu_name_plural": { + "type": "string" + }, + "to_qu_id": { + "type": "integer" + }, + "to_qu_name": { + "type": "string" + }, + "to_qu_name_plural": { + "type": "string" + }, + "factor": { + "type": "number" + }, + "path": { + "type": "string" + } + } + }, "ExposedEntity": { "type": "string", "enum": [