{
  "openapi": "3.1.0",
  "info": {
    "title": "OpenAPI",
    "description": "Shy.gg API",
    "license": {
      "name": "MIT"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.shy.gg/api"
    }
  ],
  "paths": {
    "/files/sharex": {
      "post": {
        "description": "Upload File",
        "requestBody": {
          "description": "Uploads a new file.",
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "secretKey": {
                    "type": "string",
                    "required": true
                  },
                  "sharex": {
                    "type": "string",
                    "format": "binary",
                    "required": true
                  },
                }
                "required": {
                  "secretKey": true,
                  "sharex": true
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "response",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "unexpected error!",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
  },
  "components": {
    "schemas": {
      "Error": {
        "required": [
          "error",
        ],
        "type": "object",
        "properties": {
          "error": {
            "format": "string"
          },
        }
      }
    }
  }
}
