mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
Don't expose stock entity directly via API
This commit is contained in:
parent
0751919b82
commit
538d789366
@ -37,7 +37,7 @@
|
||||
"required": true,
|
||||
"description": "A valid entity name",
|
||||
"schema": {
|
||||
"$ref": "#/components/internalSchemas/Entity"
|
||||
"$ref": "#/components/internalSchemas/ExposedEntity"
|
||||
}
|
||||
}
|
||||
],
|
||||
@ -93,7 +93,7 @@
|
||||
"required": true,
|
||||
"description": "A valid entity name",
|
||||
"schema": {
|
||||
"$ref": "#/components/internalSchemas/Entity"
|
||||
"$ref": "#/components/internalSchemas/ExposedEntity"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -156,7 +156,7 @@
|
||||
"required": true,
|
||||
"description": "A valid entity name",
|
||||
"schema": {
|
||||
"$ref": "#/components/internalSchemas/Entity"
|
||||
"$ref": "#/components/internalSchemas/ExposedEntity"
|
||||
}
|
||||
}
|
||||
],
|
||||
@ -220,7 +220,7 @@
|
||||
"required": true,
|
||||
"description": "A valid entity name",
|
||||
"schema": {
|
||||
"$ref": "#/components/internalSchemas/Entity"
|
||||
"$ref": "#/components/internalSchemas/ExposedEntity"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -293,7 +293,7 @@
|
||||
"required": true,
|
||||
"description": "A valid entity name",
|
||||
"schema": {
|
||||
"$ref": "#/components/internalSchemas/Entity"
|
||||
"$ref": "#/components/internalSchemas/ExposedEntity"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -696,7 +696,7 @@
|
||||
},
|
||||
"components": {
|
||||
"internalSchemas": {
|
||||
"Entity": {
|
||||
"ExposedEntity": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"products",
|
||||
@ -704,8 +704,7 @@
|
||||
"batteries",
|
||||
"locations",
|
||||
"quantity_units",
|
||||
"shopping_list",
|
||||
"stock"
|
||||
"shopping_list"
|
||||
]
|
||||
},
|
||||
"StockTransactionType": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user