GET
Returns the minimum text length that can be encoded.
The following example checks, if a text is valid for a QR code.
# Request:
curl --location --request GET 'https://trial.dsserver.io/documentprocessing/barcodes/istextvalid?barcodeType=qrcode&text=test_*+%C3%91%E1%B9%BC' \
--header 'Authorization: Bearer fePFHv8OtIyRSCAdOnn7USc9kKdYB2rg'
# Result:
"The text is invalid. For the barcode type QR Code, only ASCII (ISO 8859-1) characters are allowed."
Name | Type | Value | Optional |
---|---|---|---|
barcode |
String | A string that specifies the barcode type. Possible values are: "QRCode", "Code128", "EAN13", "UPCA", "EAN8", "Interleaved2of5", "Postnet ", "Code39", "Aztec |
no |
text | String | A string that should be tested for the given barcode type. | no |
Status | Description |
---|---|
200 | On success, the HTTP status code in the response header is 200 (OK). If text is invalid, information is returned about the invalid text. |
Status | Description |
---|---|
401 | A 401 (Unauthorized) is returned, if the user is not authorized. |
400 | A 400 (Bad Request) is returned, if DS Server is not licensed or the license is invalid. |
400 | A 400 (Bad Request) is returned, if the barcode type is not valid. |