{ "openapi": "3.0.1", "info": { "title": "AaronFillPDFForms", "version": "v1" }, "servers": [ { "url": "https://aaron-fill-pdf.aaronplugins.com" } ], "paths": { "/api/files/create-upload-link": { "get": { "summary": "Provides a files upload link for the user.", "operationId": "UploadFiles", "responses": { "200": { "description": "Successful response with the upload link.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ResponseBody" } } } } } } }, "/api/files/check-status": { "get": { "summary": "Checks the status of the uploaded files.", "operationId": "CheckStatusOfFiles", "responses": { "200": { "description": "Returns the status of the uploaded files", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StatusBody" } } } } } } }, "/api/files/filled-pdf": { "get": { "summary": "Gets the download link for the filled PDF. Call this endpoint again if timeout occured.", "operationId": "GetFilledPdfLink", "responses": { "200": { "description": "Returns the download link for the filled PDF.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ResponseBody" } } } } } } } }, "components": { "schemas": { "ResponseBody": { "type": "object", "properties": { "status": { "type": "string" }, "responseInstructions": { "type": "string" }, "errorMessage": { "type": "string" }, "response": { "type": "array", "items": { "type": "object", "additionalProperties": true } } } }, "StatusBody": { "type": "object", "properties": { "status": { "type": "string", "description": "Returns one of the values: running, success, fail, waiting." }, "responseInstructions": { "type": "string", "description": "Set of actions to inform the user about." } } } } } }