{ "swagger": "2.0", "info": { "description": "This is a server dedicated to customer data extraction from different vendor invoices.", "version": "1.0.0", "title": "Invoice Customer Data Extraction" }, "host": "localhost:8022", "basePath": "/vendors", "schemes": [ "http" ], "paths": { "/uploadinvoice": { "post": { "summary": "Submit invoice to data extraction process", "consumes": [ "multipart/form-data" ], "parameters": [ { "in": "formData", "name": "vendorId", "type": "string", "required": true }, { "in": "formData", "name": "vendorType", "type": "string", "required": true }, { "in": "formData", "name": "invoiceFile", "type": "file", "required": true } ], "produces": [ "application/json" ], "responses": { "200": { "description": "successful operation", "schema": { "$ref": "#/definitions/customer" } }, "405": { "description": "Unable to extract customer data" }, "default": { "description": "Unexpected error" } } } } }, "definitions": { "customer": { "type": "object", "properties": { "name": { "type": "string" }, "pod": { "type": "string" }, "fiscalCode": { "type": "string" }, "address": { "type": "string" }, "voltage": { "type": "string" }, "annualConsuption": { "type": "string" }, "email": { "type": "string" }, "phone": { "type": "string" }, "availablePower": { "type": "string" }, "engagedPower": { "type": "string" }, "pdr": { "type": "string" }, "remi": { "type": "string" }, "vendorName": { "type": "string" }, "vendorType": { "type": "string" } } } } }