{ "openapi": "3.0.1", "info": { "title": "AaronTranslator", "version": "v1" }, "servers": [ { "url": "https://aaron-translator.aaronplugins.com" } ], "paths": { "/api/link/save": { "post": { "operationId": "saveContentOfLinks", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LinkRequestBody" } } } }, "responses": { "200": { "description": "Request was successful." } } } }, "/api/link/fetch-content": { "post": { "operationId": "fetchContent", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FetchContentRequestBody" } } } }, "responses": { "200": { "description": "Request was successful." } } } }, "/api/file/link": { "get": { "operationId": "createUploadLink", "responses": { "200": { "description": "A unique upload link along with the ID and instructions for the user.", "content": { "application/json": { "schema": { "type": "object", "properties": { "link": { "type": "string" }, "id": { "type": "string" }, "responseInstructions": { "type": "string" } } } } } } } } } }, "components": { "schemas": { "LinkRequestBody": { "type": "object", "required": [ "link" ], "properties": { "link": { "type": "string" } } }, "FetchContentRequestBody": { "type": "object", "required": [ "id" ], "properties": { "id": { "type": "string" }, "language": { "type": "string", "description": "Populate this field with the value of language the user wishes to translate his text to. Don't shorten the value." } } } } } }