mirror of
https://github.com/grocy/grocy.git
synced 2026-03-28 23:59:26 +01: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" => "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
|
||||
|
|
|
|||
|
|
@ -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": [
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user