Romail Kenneth
Romail Kenneth · Acciones GPT
Search Integration API
API to retrieve data with search requirements.
GET /searchPerform a search query
Esquema original API
{
"openapi": "3.1.0",
"info": {
"title": "Search Integration API",
"description": "API to retrieve data with search requirements.",
"version": "0.0.2"
},
"servers": [
{
"url": "https://example.com/api"
}
],
"paths": {
"/search": {
"get": {
"summary": "Perform a search query",
"operationId": "search",
"parameters": [
{
"name": "query",
"in": "query",
"description": "Search query string",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Search results returned successfully",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SearchResults"
}
}
}
},
"400": {
"description": "Bad request when query parameter is missing"
}
}
}
}
},
"components": {
"schemas": {
"SearchResults": {
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SearchItem"
}
}
}
},
"SearchItem": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"link": {
"type": "string"
},
"snippet": {
"type": "string"
}
}
}
}
}
}