{ "basePath": "/", "consumes": [], "definitions": {}, "host": "exghts-ems.azurewebsites.net", "info": { "description": "}exghts helps you automatically generate documents. Just scan an accepted ID Card or other document and the relevant information will be extracted and automatically inserted into your new document based on a previously configured template. More actions will come soon.", "title": "}exghts gen. Document & more", "version": "1.0", "x-ms-api-annotation": { "status": "Preview" } }, "parameters": {}, "paths": { "/api/Flow/ExtractInformation": { "post": { "description": "Extract information from an ID Card or other documents", "operationId": "ExtractInformation", "parameters": [ { "default": "application/json", "in": "header", "name": "Content-Type", "required": true, "type": "string", "x-ms-visibility": "internal" }, { "in": "body", "name": "body", "required": false, "schema": { "properties": { "Image Content Type": { "default": "image/jpeg", "description": "Image Content Type", "title": "", "type": "string", "x-ms-visibility": "internal" }, "Image File Content": { "description": "Image file content in base64", "x-ms-summary": "Image File Content", "format": "byte", "title": "", "type": "string" } }, "required": [ "Image Content Type" ], "type": "object" } } ], "responses": { "200": { "description": "success", "schema": { "properties": { "Summary": { "description": "Contains a summary of the information identified in the document (usually a person's name)", "title": "Summary", "type": "string", "x-ms-visibility": "important" }, "Object": { "description": "Contains a JSON object containing all the extracted information", "title": "Extracted information", "type": "string", "x-ms-visibility": "important" }, "ErrorDescription": { "description": "In case there is an error it contains its description or null if the ID Card was read successfully", "title": "Error description", "type": "string", "x-ms-visibility": "important" }, "IsSuccess": { "description": "Contains the status of the request", "title": "Is success", "type": "boolean", "x-ms-visibility": "important" } }, "type": "object" } } }, "summary": "Extract document information", "x-ms-visibility": "important" } }, "/api/Flow/GenerateDocument": { "post": { "description": "Generate the document based on the object sent as JSON", "operationId": "GenerateDocument", "parameters": [ { "name": "Content-Type", "in": "header", "required": true, "type": "string", "default": "application/json", "x-ms-visibility": "internal" }, { "name": "body", "in": "body", "required": false, "schema": { "type": "object", "properties": { "documentInformation": { "type": "string", "description": "Document information in JSON format", "title": "Document Information", "x-ms-summary": "Document Information", "x-ms-visibility": "important" }, "templateFile": { "type": "string", "description": "The template file content (in base64)", "title": "Document Template Content", "x-ms-summary": "Document Template Content", "format": "byte", "x-ms-visibility": "important" } }, "required": [ "templateFile", "documentInformation" ] } } ], "responses": { "200": { "description": "success", "schema": { "format": "binary", "title": "Document content", "description": "Contains the document content in binary format", "type": "string", "x-ms-visibility": "important" } } }, "summary": "Generate document", "x-ms-visibility": "important" } } }, "produces": [], "responses": {}, "schemes": [ "https" ], "security": [ { "undefined": [ "https://graph.microsoft.com/.default" ] } ], "securityDefinitions": { "undefined": { "authorizationUrl": "https://login.windows.net/common/oauth2/authorize", "flow": "accessCode", "scopes": { "https://graph.microsoft.com/.default": "https://graph.microsoft.com/.default" }, "tokenUrl": "https://login.windows.net/common/oauth2/authorize", "type": "oauth2" } }, "swagger": "2.0", "tags": [] }