{{ define "title" }}API Documentation{{ end }} {{ define "head" }} {{ end }} {{ define "body" }}
API Requests can be made by making a POST request to /generate
The request body should be JSON similar to the below
{
"barcode_type": "code128",
"width": 600,
"height": 100,
"ecc_level": 4,
"content": "45684562"
}
barcode_type
should be one of:
width
and height
are in pixels - PDF417 is a fixed size and these options will only change the canvas size.
ecc_level
should be 1, 2, 3 or 4 where 1 is least resilient and 4 is most resilient
content
should be the value you wish the barcode to display. This should be a string and may not accept all characters - that is dependent on the barcode type.
The response will be a PNG image
{{ end }}