lobechat-plugin-workers-sch.../public/openapi.json

121 lines
3.1 KiB
JSON
Raw Normal View History

2024-03-26 02:17:45 +00:00
{
"components": {
"securitySchemes": {
"googleApiKey": {
2024-03-26 02:17:45 +00:00
"type": "apiKey",
"name": "key",
"in": "query",
"description": "API key for Google Custom Search API"
},
"customSearchId": {
"type": "apiKey",
"name": "cx",
"in": "query",
"description": "The custom search engine ID to use for this request"
2024-03-26 02:17:45 +00:00
}
}
},
"info": {
"title": "Web Search",
"version": "1.0.0"
},
"openapi": "3.0.0",
"paths": {
"/customsearch/v1": {
"get": {
"summary": "Search Google using Custom Search API",
2024-03-26 02:17:45 +00:00
"operationId": "searchGoogle",
2024-04-15 16:13:41 +00:00
"parameters": [
{
"in": "query",
"name": "q",
"schema": {
"type": "string"
},
"required": true,
"description": "Search query string"
},
{
"in": "query",
"name": "num",
"schema": {
"type": "integer",
"default": 10
},
"required": false,
"description": "Number of search results to return (1-10)"
},
2024-04-15 16:13:41 +00:00
{
"in": "query",
"name": "gl",
"schema": {
"type": "string"
},
"required": false,
"description": "Geolocation of end user (country code)"
2024-04-15 16:13:41 +00:00
},
{
"in": "query",
"name": "hl",
"schema": {
"type": "string"
},
"required": false,
"description": "Interface language"
2024-03-26 02:17:45 +00:00
}
2024-04-15 16:13:41 +00:00
],
2024-03-26 02:17:45 +00:00
"responses": {
"200": {
"description": "Successful search results",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "The title of the search result"
},
"link": {
"type": "string",
"description": "The URL of the search result"
},
"snippet": {
"type": "string",
"description": "A snippet of text from the search result"
}
}
}
2024-03-26 02:17:45 +00:00
}
}
}
}
}
}
},
"security": [
{
"googleApiKey": [],
"customSearchId": []
2024-03-26 02:17:45 +00:00
}
]
}
}
},
"security": [
{
"googleApiKey": [],
"customSearchId": []
2024-03-26 02:17:45 +00:00
}
],
"servers": [
{
"url": "https://www.googleapis.com"
2024-03-26 02:17:45 +00:00
}
]
2024-04-15 16:13:41 +00:00
}