Add an openapi type schema for quantity units conversion resolved

This commit is contained in:
Jan Karwowski 2023-12-12 13:34:02 +01:00
parent 641be7ee30
commit a04034becd
2 changed files with 37 additions and 2 deletions

View File

@ -127,11 +127,11 @@ class OpenApiController extends BaseApiController
"stock_log" => "StockLogEntry", "stock_log" => "StockLogEntry",
"stock" => "StockEntry", "stock" => "StockEntry",
/// "stock_current_locations" => , /// "stock_current_locations" => ,
"chores_log" => "ChoreLogEntry" "chores_log" => "ChoreLogEntry",
//"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" => "QuantityUnitConversionResolved",
//"recipes_pos_resolved" //"recipes_pos_resolved"
); );
// non-generic entity api // non-generic entity api

View File

@ -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": { "ExposedEntity": {
"type": "string", "type": "string",
"enum": [ "enum": [