Added openapi json

This commit is contained in:
Marc Ole Bulling 2021-01-15 01:09:56 +01:00
parent 1e8bfcab15
commit 03c528311e
No known key found for this signature in database
GPG Key ID: C126AFC2A47B06FF
2 changed files with 60 additions and 2 deletions

View File

@ -30,8 +30,6 @@ class PrintApiController extends BaseApiController {
}
}
// @formatter:off
public function __construct(\DI\Container $container)
{
parent::__construct($container);

View File

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