大学生作业帮

大学生作业帮 · GPT 작업

Search Answers

API for searching answers to user question

  • GET /searchSearch

    Search answers to the question

원본 API 스키마
{
  "openapi": "3.1.0",
  "info": {
    "title": "Search Answers",
    "description": "API for searching answers to user question",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://gpts.idealeap.cn"
    }
  ],
  "paths": {
    "/search": {
      "get": {
        "description": "Search answers to the question",
        "operationId": "Search",
        "parameters": [
          {
            "name": "question",
            "in": "query",
            "description": "User's question for search",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with the search results",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request if the query parameter is missing or invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SearchResponse": {
        "type": "object",
        "properties": {
          "answers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "question": {
                  "type": "string"
                },
                "answer": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Error message describing the reason for failure"
          }
        }
      }
    }
  }
}