该知道的都知道

该知道的都知道 · GPT Actions

User Things

Get user info from site

  • GET /api/gateway/examplesGetUserInfo

    Get the info of current user

  • POST /api/gateway/hello-worldHelloWorld

    Say hi

原始 API 定义
{
  "openapi": "3.1.0",
  "info": {
    "title": "User Things",
    "description": "Get user info from site",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://auth.open-babel.net"
    }
  ],
  "paths": {
    "/api/gateway/examples": {
      "get": {
        "description": "Get the info of current user",
        "operationId": "GetUserInfo",
        "parameters": [],
        "deprecated": false,
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/api/gateway/hello-world": {
      "post": {
        "description": "Say hi",
        "operationId": "HelloWorld",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequestHelloWorldSchema"
              }
            }
          },
          "required": true
        },
        "deprecated": false,
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "RequestHelloWorldSchema": {
        "properties": {
          "name": {
            "type": "string",
            "title": "name",
            "description": "name of user"
          },
          "from_username": {
            "type": "string",
            "title": "from_username",
            "description": "username of current user"
          }
        },
        "type": "object",
        "required": [
          "name",
          "from_username"
        ],
        "title": "RequestHelloWorldSchema"
      },
      "RequestLoginSchema": {
        "properties": {
          "username": {
            "type": "string",
            "title": "username",
            "description": "username of current user"
          }
        },
        "type": "object",
        "required": [
          "username"
        ],
        "title": "RequestLoginSchema"
      }
    },
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey"
      }
    }
  }
}