Added missing shopping_list_id for ShoppingListItem in grocy.openapi.json (fixes #1451)

This commit is contained in:
Bernd Bestel 2021-06-27 20:30:05 +02:00
parent 7133c85deb
commit 95d212a076
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -4034,63 +4034,63 @@
} }
} }
}, },
"/print/shoppinglist/thermal": { "/print/shoppinglist/thermal": {
"get": { "get": {
"summary": "Prints the shoppinglist with a thermal printer", "summary": "Prints the shoppinglist with a thermal printer",
"tags": [ "tags": [
"Print" "Print"
], ],
"parameters": [ "parameters": [
{ {
"in": "query", "in": "query",
"name": "list", "name": "list",
"required": false, "required": false,
"description": "Shopping list id", "description": "Shopping list id",
"schema": { "schema": {
"type": "integer", "type": "integer",
"default": 1 "default": 1
} }
}, },
{ {
"in": "query", "in": "query",
"name": "printHeader", "name": "printHeader",
"required": false, "required": false,
"description": "Prints grocy logo if true", "description": "Prints grocy logo if true",
"schema": { "schema": {
"type": "boolean", "type": "boolean",
"default": true "default": true
} }
} }
], ],
"responses": { "responses": {
"200": { "200": {
"description": "Returns OK if the printing was successful", "description": "Returns OK if the printing was successful",
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"type": "object", "type": "object",
"properties": { "properties": {
"result": { "result": {
"type": "string" "type": "string"
} }
} }
} }
} }
} }
}, },
"400": { "400": {
"description": "The operation was not successful", "description": "The operation was not successful",
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"$ref": "#/components/schemas/Error400" "$ref": "#/components/schemas/Error400"
} }
} }
} }
} }
}
}
} }
}
}
}, },
"components": { "components": {
"internalSchemas": { "internalSchemas": {
@ -4864,6 +4864,9 @@
"id": { "id": {
"type": "integer" "type": "integer"
}, },
"shopping_list_id": {
"type": "integer"
},
"product_id": { "product_id": {
"type": "integer" "type": "integer"
}, },