mirror of
https://github.com/grocy/grocy.git
synced 2026-04-07 05:16:15 +02:00
Added openapi json
This commit is contained in:
parent
1e8bfcab15
commit
03c528311e
|
|
@ -30,8 +30,6 @@ class PrintApiController extends BaseApiController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// @formatter:off
|
|
||||||
public function __construct(\DI\Container $container)
|
public function __construct(\DI\Container $container)
|
||||||
{
|
{
|
||||||
parent::__construct($container);
|
parent::__construct($container);
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,9 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Files"
|
"name": "Files"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Print"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"paths": {
|
"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": {
|
"components": {
|
||||||
"internalSchemas": {
|
"internalSchemas": {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user