diff --git a/scripts/check-urls.py b/scripts/check-urls.py index 1c5e1bb..7539e48 100644 --- a/scripts/check-urls.py +++ b/scripts/check-urls.py @@ -36,7 +36,6 @@ class Curl: "http://schemas.android.com/tools": (Curl.COULDNT_RESOLVE_HOST, None), "https://api.aspose.cloud/connect/token": (Curl.HTTP_RETURNED_ERROR, 400), "https://api.aspose.cloud/v3.0": (Curl.HTTP_RETURNED_ERROR, 403), - "https://api-qa.aspose.cloud/connect/token": (Curl.HTTP_RETURNED_ERROR, 400), "https://mvnrepository.com/artifact/io.swagger/swagger-codegen-cli": ( Curl.HTTP_RETURNED_ERROR, 403, @@ -53,16 +52,15 @@ class Curl: [ "http://|https://|ftp://", "http://localhost:$port/", - "http://localhost:12345", - "http://localhost:12345/v3.0", + "http://localhost:47972", + "http://localhost:47972/connect/token", + "http://localhost:47972/v3.0", "http://localhost:47972/v3.0/barcode/swagger/spec", "http://some", "http://tools.ietf.org/html/rfc1341.html", "http://tools.ietf.org/html/rfc2046", "http://tools.ietf.org/html/rfc2388", "http://urllib3.readthedocs.io/en/latest/advanced-usage.html", - "https://api-qa.aspose.cloud", - "https://api-qa.aspose.cloud/connect/token", "https://api.aspose.cloud/v3.0/barcode/scan", "https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dotnet/releases/tag/v{{packageVersion}}", "https://img.shields.io/badge/api-v{{appVersion}}-lightgrey", diff --git a/spec/aspose-barcode-cloud.json b/spec/aspose-barcode-cloud.json index 60f388a..8590c3f 100644 --- a/spec/aspose-barcode-cloud.json +++ b/spec/aspose-barcode-cloud.json @@ -17,6 +17,68 @@ "application/json" ], "paths": { + "/barcode/scan": { + "post": { + "tags": [ + "Barcode" + ], + "summary": "Quickly scan a barcode from an image.", + "operationId": "ScanBarcode", + "consumes": [ + "multipart/form-data" + ], + "parameters": [ + { + "type": "file", + "name": "imageFile", + "in": "formData", + "required": true, + "description": "Image as file", + "x-nullable": true + }, + { + "type": "array", + "name": "decodeTypes", + "in": "formData", + "description": "Types of barcode to recognize", + "collectionFormat": "multi", + "x-nullable": true, + "items": { + "$ref": "#/definitions/DecodeBarcodeType" + } + }, + { + "type": "integer", + "name": "timeout", + "in": "formData", + "description": "Timeout of recognition process in milliseconds.\n Default value is 15_000 (15 seconds).\n Maximum value is 30_000 (1/2 minute).\n In case of a timeout RequestTimeout (408) status will be returned.\n Try reducing the image size to avoid timeout.", + "format": "int32", + "x-nullable": true + } + ], + "responses": { + "200": { + "x-nullable": true, + "description": "BarcodeResponseList with barcode data.", + "schema": { + "$ref": "#/definitions/BarcodeResponseList" + } + }, + "400": { + "x-nullable": true, + "description": "Error", + "schema": { + "$ref": "#/definitions/ApiErrorResponse" + } + } + }, + "security": [ + { + "JWT": [] + } + ] + } + }, "/barcode/generate": { "get": { "tags": [ @@ -2067,68 +2129,6 @@ ] } }, - "/barcode/scan": { - "post": { - "tags": [ - "Barcode" - ], - "summary": "Quickly scan a barcode from an image.", - "operationId": "ScanBarcode", - "consumes": [ - "multipart/form-data" - ], - "parameters": [ - { - "type": "file", - "name": "imageFile", - "in": "formData", - "required": true, - "description": "Image as file", - "x-nullable": true - }, - { - "type": "array", - "name": "decodeTypes", - "in": "formData", - "description": "Types of barcode to recognize", - "collectionFormat": "multi", - "x-nullable": true, - "items": { - "$ref": "#/definitions/DecodeBarcodeType" - } - }, - { - "type": "integer", - "name": "timeout", - "in": "formData", - "description": "Timeout of recognition process in milliseconds.\n Default value is 15_000 (15 seconds).\n Maximum value is 30_000 (1/2 minute).\n In case of a timeout RequestTimeout (408) status will be returned.\n Try reducing the image size to avoid timeout.", - "format": "int32", - "x-nullable": true - } - ], - "responses": { - "200": { - "x-nullable": true, - "description": "BarcodeResponseList with barcode data.", - "schema": { - "$ref": "#/definitions/BarcodeResponseList" - } - }, - "400": { - "x-nullable": true, - "description": "Error", - "schema": { - "$ref": "#/definitions/ApiErrorResponse" - } - } - }, - "security": [ - { - "JWT": [] - } - ] - } - }, "/barcode/storage/file/{path}": { "get": { "tags": [ @@ -2814,6 +2814,67 @@ } }, "definitions": { + "BarcodeResponseList": { + "type": "object", + "description": "Represents information about barcode list.", + "additionalProperties": false, + "properties": { + "Barcodes": { + "type": "array", + "description": "List of barcodes which are present in image.", + "items": { + "$ref": "#/definitions/BarcodeResponse" + } + } + } + }, + "BarcodeResponse": { + "type": "object", + "description": "Represents information about barcode.", + "additionalProperties": false, + "properties": { + "BarcodeValue": { + "type": "string", + "description": "Barcode data." + }, + "Type": { + "type": "string", + "description": "Type of the barcode." + }, + "Region": { + "type": "array", + "description": "Region with barcode.", + "items": { + "$ref": "#/definitions/RegionPoint" + } + }, + "Checksum": { + "type": "string", + "description": "Checksum of barcode." + } + } + }, + "RegionPoint": { + "type": "object", + "description": "Wrapper around Drawing.Point for proper specification.", + "additionalProperties": false, + "required": [ + "X", + "Y" + ], + "properties": { + "X": { + "type": "integer", + "description": "X-coordinate", + "format": "int32" + }, + "Y": { + "type": "integer", + "description": "Y-coordinate", + "format": "int32" + } + } + }, "ApiErrorResponse": { "type": "object", "additionalProperties": false, @@ -2848,64 +2909,242 @@ } } }, - "EncodeBarcodeType": { + "DecodeBarcodeType": { "type": "string", - "description": "See EncodeTypes", + "description": "See DecodeType", "x-enumNames": [ + "all", + "AustraliaPost", + "Aztec", + "ISBN", "Codabar", "Code11", - "Code39Standard", - "Code39Extended", - "Code93Standard", - "Code93Extended", "Code128", "GS1Code128", - "EAN8", + "Code39Extended", + "Code39Standard", + "Code93Extended", + "Code93Standard", + "DataMatrix", + "DeutschePostIdentcode", + "DeutschePostLeitcode", "EAN13", "EAN14", - "SCC14", - "SSCC18", - "UPCA", - "UPCE", - "ISBN", + "EAN8", + "IATA2of5", + "Interleaved2of5", "ISSN", "ISMN", - "Standard2of5", - "Interleaved2of5", - "Matrix2of5", "ItalianPost25", - "IATA2of5", "ITF14", "ITF6", + "MacroPdf417", + "Matrix2of5", "MSI", - "VIN", - "DeutschePostIdentcode", - "DeutschePostLeitcode", + "OneCode", "OPC", - "PZN", - "Code16K", - "Pharmacode", - "DataMatrix", - "QR", - "Aztec", + "PatchCode", "Pdf417", - "MacroPdf417", - "AustraliaPost", - "Postnet", + "MicroPdf417", "Planet", - "OneCode", + "Postnet", + "PZN", + "QR", + "MicroQR", "RM4SCC", + "SCC14", + "SSCC18", + "Standard2of5", + "Supplement", + "UPCA", + "UPCE", + "VIN", + "Pharmacode", + "GS1DataMatrix", "DatabarOmniDirectional", "DatabarTruncated", "DatabarLimited", "DatabarExpanded", - "SingaporePost", - "GS1DataMatrix", - "AustralianPosteParcel", "SwissPostParcel", - "PatchCode", - "DatabarExpandedStacked", - "DatabarStacked", + "AustralianPosteParcel", + "Code16K", + "DatabarStackedOmniDirectional", + "DatabarStacked", + "DatabarExpandedStacked", + "CompactPdf417", + "GS1QR", + "MaxiCode", + "MicrE13B", + "Code32", + "DataLogic2of5", + "DotCode", + "DutchKIX", + "CodablockF", + "Mailmark", + "GS1DotCode", + "HIBCCode39LIC", + "HIBCCode128LIC", + "HIBCAztecLIC", + "HIBCDataMatrixLIC", + "HIBCQRLIC", + "HIBCCode39PAS", + "HIBCCode128PAS", + "HIBCAztecPAS", + "HIBCDataMatrixPAS", + "HIBCQRPAS", + "HanXin", + "GS1HanXin", + "GS1Aztec", + "GS1CompositeBar", + "GS1MicroPdf417", + "mostCommonlyUsed" + ], + "enum": [ + "all", + "AustraliaPost", + "Aztec", + "ISBN", + "Codabar", + "Code11", + "Code128", + "GS1Code128", + "Code39Extended", + "Code39Standard", + "Code93Extended", + "Code93Standard", + "DataMatrix", + "DeutschePostIdentcode", + "DeutschePostLeitcode", + "EAN13", + "EAN14", + "EAN8", + "IATA2of5", + "Interleaved2of5", + "ISSN", + "ISMN", + "ItalianPost25", + "ITF14", + "ITF6", + "MacroPdf417", + "Matrix2of5", + "MSI", + "OneCode", + "OPC", + "PatchCode", + "Pdf417", + "MicroPdf417", + "Planet", + "Postnet", + "PZN", + "QR", + "MicroQR", + "RM4SCC", + "SCC14", + "SSCC18", + "Standard2of5", + "Supplement", + "UPCA", + "UPCE", + "VIN", + "Pharmacode", + "GS1DataMatrix", + "DatabarOmniDirectional", + "DatabarTruncated", + "DatabarLimited", + "DatabarExpanded", + "SwissPostParcel", + "AustralianPosteParcel", + "Code16K", + "DatabarStackedOmniDirectional", + "DatabarStacked", + "DatabarExpandedStacked", + "CompactPdf417", + "GS1QR", + "MaxiCode", + "MicrE13B", + "Code32", + "DataLogic2of5", + "DotCode", + "DutchKIX", + "CodablockF", + "Mailmark", + "GS1DotCode", + "HIBCCode39LIC", + "HIBCCode128LIC", + "HIBCAztecLIC", + "HIBCDataMatrixLIC", + "HIBCQRLIC", + "HIBCCode39PAS", + "HIBCCode128PAS", + "HIBCAztecPAS", + "HIBCDataMatrixPAS", + "HIBCQRPAS", + "HanXin", + "GS1HanXin", + "GS1Aztec", + "GS1CompositeBar", + "GS1MicroPdf417", + "mostCommonlyUsed" + ] + }, + "EncodeBarcodeType": { + "type": "string", + "description": "See EncodeTypes", + "x-enumNames": [ + "Codabar", + "Code11", + "Code39Standard", + "Code39Extended", + "Code93Standard", + "Code93Extended", + "Code128", + "GS1Code128", + "EAN8", + "EAN13", + "EAN14", + "SCC14", + "SSCC18", + "UPCA", + "UPCE", + "ISBN", + "ISSN", + "ISMN", + "Standard2of5", + "Interleaved2of5", + "Matrix2of5", + "ItalianPost25", + "IATA2of5", + "ITF14", + "ITF6", + "MSI", + "VIN", + "DeutschePostIdentcode", + "DeutschePostLeitcode", + "OPC", + "PZN", + "Code16K", + "Pharmacode", + "DataMatrix", + "QR", + "Aztec", + "Pdf417", + "MacroPdf417", + "AustraliaPost", + "Postnet", + "Planet", + "OneCode", + "RM4SCC", + "DatabarOmniDirectional", + "DatabarTruncated", + "DatabarLimited", + "DatabarExpanded", + "SingaporePost", + "GS1DataMatrix", + "AustralianPosteParcel", + "SwissPostParcel", + "PatchCode", + "DatabarExpandedStacked", + "DatabarStacked", "DatabarStackedOmniDirectional", "MicroPdf417", "GS1QR", @@ -4903,245 +5142,6 @@ "Version84" ] }, - "BarcodeResponseList": { - "type": "object", - "description": "Represents information about barcode list.", - "additionalProperties": false, - "properties": { - "Barcodes": { - "type": "array", - "description": "List of barcodes which are present in image.", - "items": { - "$ref": "#/definitions/BarcodeResponse" - } - } - } - }, - "BarcodeResponse": { - "type": "object", - "description": "Represents information about barcode.", - "additionalProperties": false, - "properties": { - "BarcodeValue": { - "type": "string", - "description": "Barcode data." - }, - "Type": { - "type": "string", - "description": "Type of the barcode." - }, - "Region": { - "type": "array", - "description": "Region with barcode.", - "items": { - "$ref": "#/definitions/RegionPoint" - } - }, - "Checksum": { - "type": "string", - "description": "Checksum of barcode." - } - } - }, - "RegionPoint": { - "type": "object", - "description": "Wrapper around Drawing.Point for proper specification.", - "additionalProperties": false, - "required": [ - "X", - "Y" - ], - "properties": { - "X": { - "type": "integer", - "description": "X-coordinate", - "format": "int32" - }, - "Y": { - "type": "integer", - "description": "Y-coordinate", - "format": "int32" - } - } - }, - "DecodeBarcodeType": { - "type": "string", - "description": "See DecodeType", - "x-enumNames": [ - "all", - "AustraliaPost", - "Aztec", - "ISBN", - "Codabar", - "Code11", - "Code128", - "GS1Code128", - "Code39Extended", - "Code39Standard", - "Code93Extended", - "Code93Standard", - "DataMatrix", - "DeutschePostIdentcode", - "DeutschePostLeitcode", - "EAN13", - "EAN14", - "EAN8", - "IATA2of5", - "Interleaved2of5", - "ISSN", - "ISMN", - "ItalianPost25", - "ITF14", - "ITF6", - "MacroPdf417", - "Matrix2of5", - "MSI", - "OneCode", - "OPC", - "PatchCode", - "Pdf417", - "MicroPdf417", - "Planet", - "Postnet", - "PZN", - "QR", - "MicroQR", - "RM4SCC", - "SCC14", - "SSCC18", - "Standard2of5", - "Supplement", - "UPCA", - "UPCE", - "VIN", - "Pharmacode", - "GS1DataMatrix", - "DatabarOmniDirectional", - "DatabarTruncated", - "DatabarLimited", - "DatabarExpanded", - "SwissPostParcel", - "AustralianPosteParcel", - "Code16K", - "DatabarStackedOmniDirectional", - "DatabarStacked", - "DatabarExpandedStacked", - "CompactPdf417", - "GS1QR", - "MaxiCode", - "MicrE13B", - "Code32", - "DataLogic2of5", - "DotCode", - "DutchKIX", - "CodablockF", - "Mailmark", - "GS1DotCode", - "HIBCCode39LIC", - "HIBCCode128LIC", - "HIBCAztecLIC", - "HIBCDataMatrixLIC", - "HIBCQRLIC", - "HIBCCode39PAS", - "HIBCCode128PAS", - "HIBCAztecPAS", - "HIBCDataMatrixPAS", - "HIBCQRPAS", - "HanXin", - "GS1HanXin", - "GS1Aztec", - "GS1CompositeBar", - "GS1MicroPdf417", - "mostCommonlyUsed" - ], - "enum": [ - "all", - "AustraliaPost", - "Aztec", - "ISBN", - "Codabar", - "Code11", - "Code128", - "GS1Code128", - "Code39Extended", - "Code39Standard", - "Code93Extended", - "Code93Standard", - "DataMatrix", - "DeutschePostIdentcode", - "DeutschePostLeitcode", - "EAN13", - "EAN14", - "EAN8", - "IATA2of5", - "Interleaved2of5", - "ISSN", - "ISMN", - "ItalianPost25", - "ITF14", - "ITF6", - "MacroPdf417", - "Matrix2of5", - "MSI", - "OneCode", - "OPC", - "PatchCode", - "Pdf417", - "MicroPdf417", - "Planet", - "Postnet", - "PZN", - "QR", - "MicroQR", - "RM4SCC", - "SCC14", - "SSCC18", - "Standard2of5", - "Supplement", - "UPCA", - "UPCE", - "VIN", - "Pharmacode", - "GS1DataMatrix", - "DatabarOmniDirectional", - "DatabarTruncated", - "DatabarLimited", - "DatabarExpanded", - "SwissPostParcel", - "AustralianPosteParcel", - "Code16K", - "DatabarStackedOmniDirectional", - "DatabarStacked", - "DatabarExpandedStacked", - "CompactPdf417", - "GS1QR", - "MaxiCode", - "MicrE13B", - "Code32", - "DataLogic2of5", - "DotCode", - "DutchKIX", - "CodablockF", - "Mailmark", - "GS1DotCode", - "HIBCCode39LIC", - "HIBCCode128LIC", - "HIBCAztecLIC", - "HIBCDataMatrixLIC", - "HIBCQRLIC", - "HIBCCode39PAS", - "HIBCCode128PAS", - "HIBCAztecPAS", - "HIBCDataMatrixPAS", - "HIBCQRPAS", - "HanXin", - "GS1HanXin", - "GS1Aztec", - "GS1CompositeBar", - "GS1MicroPdf417", - "mostCommonlyUsed" - ] - }, "ChecksumValidation": { "type": "string", "description": "", diff --git a/submodules/dotnet b/submodules/dotnet index f3663e2..a3c3ee5 160000 --- a/submodules/dotnet +++ b/submodules/dotnet @@ -1 +1 @@ -Subproject commit f3663e24ef9fe3ed223961628143918613f45051 +Subproject commit a3c3ee586baf8a3e22e4fd2969ceb4b1f647f14a diff --git a/submodules/php b/submodules/php index 89207d7..5d8665e 160000 --- a/submodules/php +++ b/submodules/php @@ -1 +1 @@ -Subproject commit 89207d78e333ba255f316d1ed517f7ce2324c68f +Subproject commit 5d8665e69a725326c6efec7b43db1f4c8c9a3d3c