{ "swagger": "2.0", "info": { "description": "ConPDS Rest", "version": "1.0.0", "title": "ConPDS Rest", "contact": {} }, "host": "ocr1.conpds.com", "basePath": "/rest", "tags": [ { "name": "Default", "description": "Default section" } ], "schemes": [ "http" ], "paths": { "/container-ocr": { "post": { "tags": [ "Default" ], "summary": "ConPDS recognize", "description": "Recognize \".jpg\",\".bmp\",\".gif\" file\n", "consumes": [ "multipart/form-data" ], "produces": [ "application/json", "text/plain" ], "parameters": [ { "in": "formData", "name": "file", "type": "file", "description": "The file to upload." } ], "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/SuccessResult" } }, "400": { "description": "Status 400", "schema": { "$ref": "#/definitions/BadRequestResult" } }, "417": { "description": "Status 417", "schema": { "$ref": "#/definitions/ErrorResult" } }, "500": { "description": "Status 500", "schema": { "$ref": "#/definitions/Error" } } } } } }, "definitions": { "SuccessResult": { "type": "string", "description": "recognition result" }, "BadRequestResult": { "type": "string", "description": "recognition result" }, "ErrorResult": { "type": "object" }, "Error": { "type": "object" } } }