-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathopenapi.json
232 lines (232 loc) · 9.2 KB
/
openapi.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
{
"openapi": "3.0.1",
"info": {
"title": "lessapi-duckduckgo",
"description": "",
"version": "0.0.1"
},
"tags": [],
"paths": {
"/search/text": {
"get": {
"summary": "search/text",
"deprecated": false,
"description": "search text by keyword.",
"tags": [],
"parameters": [
{
"name": "keyword",
"in": "query",
"description": "keywords for query.",
"required": true,
"example": "lessapi",
"schema": {
"type": "string"
}
},
{
"name": "region",
"in": "query",
"description": "locate region. en-US, fr-FR, zh-CN, ru-RU, etc. Defaults to \"en-US\".",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "timeLimit",
"in": "query",
"description": "d (day), w (week), m (month), y (year). Defaults to None.",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "maxCount",
"in": "query",
"description": "max number of results. Defaults to 20.",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "viaProxyUrl",
"in": "query",
"description": "proxy url to use by browser. Defaults to None.",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "\"success\" or ErrorCode"
},
"message": {
"type": "string",
"description": "error message"
},
"data": {
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SearchTextResultItem"
},
"description": "search result items"
}
},
"description": "success data",
"required": [
"results"
]
}
},
"required": [
"code"
]
},
"examples": {
"1": {
"summary": "成功示例",
"value": {
"code": "success",
"data": {
"results": [
{
"order": 1,
"title": "Adele - Hello (Official Music Video) - YouTube",
"href": "https://www.youtube.com/watch?v=YQHsXMglC9A",
"description": "Listen to \"Easy On Me\" here: http://Adele.lnk.to/EOMPre-order Adele's new album \"30\" before its release on November 19: https://www.adele.comShop the \"Adele..."
},
{
"order": 2,
"title": "Hello Definition & Meaning - Merriam-Webster",
"href": "https://www.merriam-webster.com/dictionary/hello",
"description": "Learn the origin, usage, and synonyms of the word hello, an expression or gesture of greeting. See examples of hello in sentences and related words from the dictionary."
},
{
"order": 3,
"title": "HELLO | definition in the Cambridge English Dictionary",
"href": "https://dictionary.cambridge.org/us/dictionary/english/hello",
"description": "Learn the meaning, pronunciation and usage of hello, a common greeting and phone call in English. Find out how to say hello in different situations and languages with examples and translations."
},
{
"order": 4,
"title": "Hello - Wikipedia",
"href": "https://en.wikipedia.org/wiki/Hello",
"description": "Hello is a salutation or greeting in the English language. It is first attested in writing from 1826. Early uses. Hello, with that spelling, was used in publications in the U.S. as early as the 18 October 1826 edition of the Norwich Courier of Norwich, Connecticut."
},
{
"order": 5,
"title": "Adele - Hello (Official Music Video) - YouTube Music",
"href": "https://music.youtube.com/watch?v=YQHsXMglC9A",
"description": "Add similar content to the end of the queue. Autoplay is on. Player bar"
},
{
"order": 6,
"title": "Adele - Hello | Lyrics | HD - YouTube",
"href": "https://www.youtube.com/watch?v=CaHWq1rheeU",
"description": "\"Hello\" is taken from the new album, 25, out November 20.http://adele.comFollow Adele on: Facebook - https://www.facebook.com/AdeleTwitter - https://twitter...."
},
{
"order": 7,
"title": "HELLO | meaning - Cambridge Learner's Dictionary",
"href": "https://dictionary.cambridge.org/dictionary/learner-english/hello",
"description": "Learn the meaning and usage of hello, an exclamation to greet someone or start a phone call. Find translations of hello in many languages, such as Chinese, Spanish, French, Arabic, and more."
},
{
"order": 8,
"title": "The Origin of 'Hello' | Merriam-Webster",
"href": "https://www.merriam-webster.com/wordplay/the-origin-of-hello",
"description": "Learn how hello became the most common word for greeting in English, and how it replaced older terms like hail and ahoy. Discover the history and usage of hello, from its first appearance in the 1800s to its role in the telephone era."
},
{
"order": 9,
"title": "Adele - Hello Lyrics | Genius Lyrics",
"href": "https://genius.com/Adele-hello-lyrics",
"description": "Hello Lyrics: Hello, it's me / I was wondering if, after all these years, you'd like to meet / To go over everything / They say that time's supposed to heal ya / But I ain't done much healin"
},
{
"order": 10,
"title": "HELLO | English meaning - Cambridge Dictionary",
"href": "https://dictionary.cambridge.org/dictionary/english/hello",
"description": "Learn the meaning and usage of the word hello in English, with examples from different contexts and sources. Find out how to pronounce hello and how to say it in other languages."
}
]
}
}
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"SearchTextResultItem": {
"type": "object",
"properties": {
"order": {
"type": "integer"
},
"title": {
"type": "string"
},
"url": {
"type": "string"
},
"description": {
"type": "string"
}
},
"required": [
"order",
"title",
"url",
"description"
]
},
"ApiResponse": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "\"success\" or ErrorCode"
},
"message": {
"type": "string",
"description": "error message"
},
"data": {
"type": "string"
}
},
"required": [
"code"
]
}
}
},
"servers": [
{
"url": "http://127.0.0.1:8080",
"description": "Local Development Server"
}
]
}