feat(barcodes): Make width and height configureable

This commit is contained in:
2024-12-12 17:03:10 +01:00
parent 5c932158e9
commit 2a4f126377
4 changed files with 74 additions and 1 deletions

View File

@@ -52,6 +52,24 @@ const docTemplate = `{
"name": "content",
"in": "path",
"required": true
},
{
"maximum": 10000,
"minimum": 1,
"type": "integer",
"default": 1000,
"description": "Barcode width",
"name": "width",
"in": "query"
},
{
"maximum": 10000,
"minimum": 1,
"type": "integer",
"default": 1000,
"description": "Barcode height",
"name": "height",
"in": "query"
}
],
"responses": {}

View File

@@ -43,6 +43,24 @@
"name": "content",
"in": "path",
"required": true
},
{
"maximum": 10000,
"minimum": 1,
"type": "integer",
"default": 1000,
"description": "Barcode width",
"name": "width",
"in": "query"
},
{
"maximum": 10000,
"minimum": 1,
"type": "integer",
"default": 1000,
"description": "Barcode height",
"name": "height",
"in": "query"
}
],
"responses": {}

View File

@@ -181,6 +181,20 @@ paths:
name: content
required: true
type: string
- default: 1000
description: Barcode width
in: query
maximum: 10000
minimum: 1
name: width
type: integer
- default: 1000
description: Barcode height
in: query
maximum: 10000
minimum: 1
name: height
type: integer
produces:
- image/png
responses: {}