feat(barcodes): Make width and height configureable
This commit is contained in:
18
docs/docs.go
18
docs/docs.go
@@ -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": {}
|
||||
|
||||
@@ -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": {}
|
||||
|
||||
@@ -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: {}
|
||||
|
||||
Reference in New Issue
Block a user