-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathchatgpt-plugin.outschool.com.json
411 lines (411 loc) · 13.9 KB
/
chatgpt-plugin.outschool.com.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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
{
"openapi": "3.0.1",
"info": {
"title": "Outschool Plugin",
"description": "A plugin that allows users to search for online classes and teachers on Outschool. This plugin returns live data from the Outschool system and uses a subset of the Outschool search capabilities.",
"version": "v1"
},
"servers": [
{
"url": "https://chatgpt-plugin.outschool.com/api"
}
],
"paths": {
"/classes": {
"get": {
"operationId": "searchClasses",
"description": "Returns a list of online classes",
"parameters": [
{
"name": "timeZone",
"in": "query",
"required": true,
"description": "IANA Time Zone identifier of the user. Either provided by user or derived from their location. Since Outschool parents and teachers can be from different time zones, this is required to search classes that are available in parent's timezone at reasonable hours. Only IANA format is accepted.",
"schema": {
"type": "string"
},
"examples": {
"losAngeles": {
"value": "America/Los_Angeles"
},
"newYork": {
"value": "America/New_York"
},
"london": {
"value": "Europe/London"
}
}
},
{
"name": "age",
"in": "query",
"required": true,
"description": "Outschool has several classes serving different age groups. The age of the learner(s) helps to find classes that match the best. This is a comma separated list. If the age difference between the children is more than 5 years, it may be better to search for different ages separately to get better search results.",
"schema": {
"type": "string",
"minimum": 3,
"maximum": 18
},
"examples": {
"12": {
"value": "12"
},
"1213": {
"value": "12,13"
},
"5617": {
"value": "5,6,17"
}
}
},
{
"name": "q",
"in": "query",
"required": false,
"description": "Keywords to use to search in the class list. Classes matching the keyword closest will be returned.",
"schema": {
"type": "string"
}
},
{
"name": "delivery",
"in": "query",
"required": false,
"explode": true,
"description": "Filters classes by delivery type. Description for different enum values:\n One-time: Classes that meets once\n Ongoing: Weekly classes that learners can enroll in any week\n Semester course: Multi-week/session classes, usually more than 4 weeks\n Short course: Multi-week/session classes, usually around 4 weeks\n Camp: Semester or short courses during summer and school breaks\n Group: Async chat groups on a specific topic where learners share ideas and experiences, like clubs",
"schema": {
"type": "array",
"items": {
"type": "string",
"enum": [
"One-time",
"Ongoing",
"Semester course",
"Short course",
"Camp",
"Group"
]
}
}
},
{
"name": "userUid",
"in": "query",
"required": false,
"description": "Only search classes taught by a specific teacher. The userUid is the id of the teacher",
"schema": {
"type": "string",
"format": "uuid"
}
},
{
"name": "order",
"in": "query",
"description": "Sort results by either upcoming, new, or relevance. Upcoming sorts by next section start date in ascending order, new sorts by class published date in descending order, and relevance sorts by the keyword relevance and popularity of the class.",
"schema": {
"type": "string",
"enum": [
"upcoming",
"new",
"relevance"
],
"default": "relevance"
}
},
{
"name": "offset",
"in": "query",
"required": false,
"description": "The offset for the results. Offset and limit used in combination to paginate in results. For instance, if limit is 10, to get next 10 results, the offset should be set to 10.",
"schema": {
"type": "number",
"default": 0
}
},
{
"name": "limit",
"in": "query",
"required": false,
"description": "Number of results to return.",
"schema": {
"type": "number",
"default": 10
}
},
{
"name": "startAfter",
"in": "query",
"required": false,
"description": "Search classes that have a section starting on or after a given date. Only today or future dates are allowed.",
"schema": {
"type": "string",
"format": "date"
},
"examples": {
"April152023": {
"value": "2023-04-15"
}
}
},
{
"name": "dow",
"in": "query",
"description": "The day of week to filter classes and only return classes that have a section on given days of the week.",
"schema": {
"type": "array",
"items": {
"type": "string",
"enum": [
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat",
"Sun"
]
}
},
"style": "form",
"explode": true,
"required": false,
"examples": {
"Mon": {
"value": "Mon"
},
"Mon_Tue": {
"value": "Mon,Tue"
},
"Mon_Thu": {
"value": "Mon,Tue,Wed,Thu"
},
"Weekdays": {
"value": "Mon,Tue,Wed,Thu,Fri"
},
"Weekend": {
"value": "Sat, Sun"
}
}
},
{
"name": "startAfterTime",
"in": "query",
"description": "The start time of the class in 24 hour format as hour of the day normalized by the user's timezone",
"schema": {
"type": "number",
"minimum": 6,
"maximum": 22
}
},
{
"name": "endByTime",
"in": "query",
"description": "The end time of the class in 24 hour format as hour of the day normalized by the user's timezone",
"schema": {
"type": "number",
"minimum": 6,
"maximum": 22
}
}
],
"responses": {
"200": {
"description": "A list of classes",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/class"
}
}
}
}
}
}
}
},
"/teachers": {
"get": {
"operationId": "searchTeachers",
"description": "Returns a list of teachers",
"parameters": [
{
"name": "name",
"in": "query",
"required": true,
"description": "Name of the teacher to search for",
"schema": {
"type": "string"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"description": "Number of results to return.",
"schema": {
"type": "number",
"default": 10
}
}
],
"responses": {
"200": {
"description": "A list of teachers",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/teacher"
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"class": {
"type": "object",
"properties": {
"uid": {
"type": "string",
"format": "uuid",
"description": "Unique ID of the class in the system that can be used in other API end points"
},
"title": {
"type": "string",
"description": "Title of the class"
},
"summary": {
"type": "string",
"description": "Summary of the class"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL to the class detail page"
},
"photo": {
"type": "string",
"format": "uri",
"description": "Photo of the class"
},
"is_ongoing_weekly": {
"type": "boolean",
"description": "Whether this class is an ongoing class or not. When a class is an ongoing class, parents can enroll their children for any week of an ongoing class, because the sections of that class meet every week and the weeks don't depend on each other."
},
"age_min": {
"type": "number",
"description": "The minimum age a learner should be to enroll in the class. Although Outschool has classes for different age groups, individual classes may only be appropriate for a certain age range."
},
"age_max": {
"type": "number",
"description": "The maximum age a learner should be to enroll in the class. Although Outschool has classes for different age groups, individual classes may only be appropriate for a certain age range."
},
"teacher": {
"$ref": "#/components/schemas/teacher"
},
"nextSection": {
"$ref": "#/components/schemas/section",
"nullable": true,
"description": "The next section of the class that the parent/caregiver can enroll their children in. This is usually what parents are looking for to enroll in a class."
}
}
},
"teacher": {
"type": "object",
"properties": {
"uid": {
"type": "string",
"format": "uuid",
"description": "Unique ID of the teacher in the system that can be used in other API end points"
},
"name": {
"type": "string",
"description": "Name of the teacher"
},
"about": {
"type": "string",
"description": "A short summary the teacher provides about themselves"
},
"photo": {
"type": "string",
"format": "uri",
"description": "Photo of the teacher"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL to the Outschool profile page of the teacher"
}
}
},
"section": {
"type": "object",
"description": "Sections are what parents enroll their children in for a given class. They are separate cohorts of a class.",
"properties": {
"uid": {
"type": "string",
"format": "uuid",
"description": "Unique ID of the section in the system that can be used in other API end points"
},
"url": {
"type": "string",
"format": "uri",
"description": "URL pointing to the section page"
},
"start_time": {
"type": "string",
"format": "datetime",
"description": "The start time for the first meeting of a section."
},
"end_time": {
"type": "string",
"format": "datetime",
"description": "The end time for the last meeting of a section."
},
"size_max": {
"type": "number",
"description": "How many learners can enroll in the section."
},
"filledSpaceCount": {
"type": "number",
"description": "How many learners are enrolled in the section. size_max - filledSpaceCount gives how many seats are left to enroll in."
},
"nextOngoingMeeting": {
"$ref": "#/components/schemas/meeting",
"nullable": true,
"description": "If the class is an ongoing class, this points to the next meeting for the section."
}
}
},
"meeting": {
"type": "object",
"description": "The online meeting for a section. Meetings are held on Zoom.",
"properties": {
"uid": {
"type": "string",
"format": "uuid",
"description": "Unique ID of the meeting in the system that can be used in other API end points"
},
"start_time": {
"type": "string",
"format": "datetime",
"description": "The start time of the meeting."
},
"end_time": {
"type": "string",
"format": "datetime",
"description": "The end time of the meeting."
}
}
}
}
}
}