docs(swagger): New barcode padding docs
This commit is contained in:
parent
ea6a4a7080
commit
b792806481
@ -70,6 +70,15 @@ const docTemplate = `{
|
|||||||
"description": "Barcode height",
|
"description": "Barcode height",
|
||||||
"name": "height",
|
"name": "height",
|
||||||
"in": "query"
|
"in": "query"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"maximum": 100,
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer",
|
||||||
|
"default": 10,
|
||||||
|
"description": "Padding around the barcode (included in image size)",
|
||||||
|
"name": "padding",
|
||||||
|
"in": "query"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {}
|
"responses": {}
|
||||||
|
@ -61,6 +61,15 @@
|
|||||||
"description": "Barcode height",
|
"description": "Barcode height",
|
||||||
"name": "height",
|
"name": "height",
|
||||||
"in": "query"
|
"in": "query"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"maximum": 100,
|
||||||
|
"minimum": 0,
|
||||||
|
"type": "integer",
|
||||||
|
"default": 10,
|
||||||
|
"description": "Padding around the barcode (included in image size)",
|
||||||
|
"name": "padding",
|
||||||
|
"in": "query"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {}
|
"responses": {}
|
||||||
|
@ -190,6 +190,13 @@ paths:
|
|||||||
minimum: 1
|
minimum: 1
|
||||||
name: height
|
name: height
|
||||||
type: integer
|
type: integer
|
||||||
|
- default: 10
|
||||||
|
description: Padding around the barcode (included in image size)
|
||||||
|
in: query
|
||||||
|
maximum: 100
|
||||||
|
minimum: 0
|
||||||
|
name: padding
|
||||||
|
type: integer
|
||||||
produces:
|
produces:
|
||||||
- image/png
|
- image/png
|
||||||
responses: {}
|
responses: {}
|
||||||
|
@ -15,7 +15,7 @@ import (
|
|||||||
// @Param content path string true "Barcode content" MinLength(1)
|
// @Param content path string true "Barcode content" MinLength(1)
|
||||||
// @Param width query int false "Barcode width" Minimum(1) Maximum(10000) default(1000)
|
// @Param width query int false "Barcode width" Minimum(1) Maximum(10000) default(1000)
|
||||||
// @Param height query int false "Barcode height" Minimum(1) Maximum(10000) default(1000)
|
// @Param height query int false "Barcode height" Minimum(1) Maximum(10000) default(1000)
|
||||||
// @Param padding query int false "Padding around the barcode" Minimum(0) Maximum(100) default(10)
|
// @Param padding query int false "Padding around the barcode (included in image size)" Minimum(0) Maximum(100) default(10)
|
||||||
// @Produce image/png
|
// @Produce image/png
|
||||||
// @Router /v1/barcodes/{type}/{content} [get]
|
// @Router /v1/barcodes/{type}/{content} [get]
|
||||||
func (h *DefaultHandler) GenerateBarcode(c *fiber.Ctx) error {
|
func (h *DefaultHandler) GenerateBarcode(c *fiber.Ctx) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user