Skip to content

Commit

Permalink
Reformatting openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
GithuBarry committed Apr 15, 2024
1 parent 734504d commit f89a41e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 120 deletions.
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"api": {
"type": "openapi",
"url": "https://raw.githubusercontent.com/GithuBarry/chat-plugin-search-engine/main/public/openapi_2.json",
"url": "https://raw.githubusercontent.com/GithuBarry/chat-plugin-search-engine/main/public/openapi.json",
"is_user_authenticated": false
},
"auth": {
Expand Down
58 changes: 29 additions & 29 deletions public/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,35 @@
"post": {
"summary": "Search Google and return top 10 results",
"operationId": "searchGoogle",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"example": "今天吃什么"
},
"gl": {
"type": "string",
"description": "Google Geo location parameter",
"example": "cn"
},
"hl": {
"type": "string",
"description": "Google Geo locale parameter",
"example": "zh-cn"
}
}
}
}
"parameters": [
{
"in": "query",
"name": "q",
"schema": {
"type": "string"
},
"required": true,
"description": "Search query string"
},
{
"in": "query",
"name": "gl",
"schema": {
"type": "string"
},
"required": false,
"description": "Google Geo location parameter"
},
{
"in": "query",
"name": "hl",
"schema": {
"type": "string"
},
"required": false,
"description": "Google Geo locale parameter"
}
},
],
"responses": {
"200": {
"description": "Successful search results",
Expand Down Expand Up @@ -87,4 +87,4 @@
"url": "https://google.serper.dev"
}
]
}
}
90 changes: 0 additions & 90 deletions public/openapi_2.json

This file was deleted.

0 comments on commit f89a41e

Please sign in to comment.