大学生作业帮
大学生作业帮 · Acciones GPT
Search Answers
API for searching answers to user question
GET /searchSearchSearch answers to the question
Esquema original 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"
}
}
}
}
}
}