Aaron Translator

Aaron Translator · GPT-Aktionen

AaronTranslator

  • POST /link/savesaveContentOfLinks
  • POST /link/fetch-contentfetchContent
  • GET /file/linkcreateUploadLink
Ursprüngliches API-Schema
{
  "openapi": "3.0.1",
  "info": {
    "title": "AaronTranslator",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.gptcloud.dev/run/654d23dc80b7a5ccae50e700/65786cb0956caf0360799198"
    }
  ],
  "paths": {
    "/link/save": {
      "post": {
        "operationId": "saveContentOfLinks",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkRequestBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Request was successful."
          }
        }
      }
    },
    "/link/fetch-content": {
      "post": {
        "operationId": "fetchContent",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FetchContentRequestBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Request was successful."
          }
        }
      }
    },
    "/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."
          }
        }
      }
    }
  }
}