mirror of
https://github.com/grocy/grocy.git
synced 2026-04-08 21:46:16 +02:00
Add an openapi type schema for quantity units conversion resolved
This commit is contained in:
parent
641be7ee30
commit
a04034becd
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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": [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user