@@ -96,6 +96,51 @@ paths:
96
96
description : Gets the current user
97
97
security :
98
98
- JWT : []
99
+ /events :
100
+ get :
101
+ summary : GET Events
102
+ tags : []
103
+ responses :
104
+ ' 200 ' :
105
+ description : OK
106
+ content :
107
+ application/json :
108
+ schema :
109
+ type : array
110
+ items :
111
+ $ref : ' #/components/schemas/Event'
112
+ operationId : get-events
113
+ description : Gets a collection of events within a specific year
114
+ parameters :
115
+ - schema :
116
+ type : string
117
+ in : query
118
+ name : year
119
+ description : The year to fetch the events from
120
+ ' /event/{eventId} ' :
121
+ parameters :
122
+ - schema :
123
+ type : string
124
+ name : eventId
125
+ in : path
126
+ required : true
127
+ description : The ID of the event to get
128
+ get :
129
+ summary : GET Event
130
+ tags : []
131
+ responses :
132
+ ' 200 ' :
133
+ description : OK
134
+ content :
135
+ application/json :
136
+ schema :
137
+ $ref : ' #/components/schemas/Event'
138
+ ' 404 ' :
139
+ description : Not Found
140
+ ' 500 ' :
141
+ description : Internal Server Error
142
+ operationId : get-event-eventId
143
+ description : Gets an event based off of the id supplied
99
144
components :
100
145
schemas :
101
146
User :
@@ -112,6 +157,153 @@ components:
112
157
type : string
113
158
isAuthor :
114
159
type : boolean
160
+ PartialEvent :
161
+ title : Partial event
162
+ type : object
163
+ properties :
164
+ id :
165
+ type : string
166
+ title :
167
+ type : string
168
+ description :
169
+ type : string
170
+ thumbnail :
171
+ type : string
172
+ heldAt :
173
+ type : string
174
+ description : ISO8601 datetime
175
+ description : A partial event
176
+ Event :
177
+ description : ' '
178
+ type : object
179
+ x-examples :
180
+ example-1 :
181
+ author :
182
+ Username : quin
183
+ Discriminator : ' 3017'
184
+ UserId : ' 259053800755691520'
185
+ Avatar : ' https://cdn.discordapp.com/avatars/259053800755691520/1b1a1c1a62756406ebb3319138e08d4b.png?size=128'
186
+ contributors : []
187
+ summaries :
188
+ - id : 9d9c1a6ad69c4b5598e77a00bc9f369e
189
+ title : Test title
190
+ content : Test content
191
+ type : qnaanswer
192
+ isNew : true
193
+ thumbnail : null
194
+ featureType : null
195
+ id : 9587372f767141499a7d94e7a9bee01d
196
+ title : Test
197
+ description : Test desc
198
+ thumbnail : null
199
+ heldAt : ' 2022-02-01T18:29:48.793764+00:00'
200
+ properties :
201
+ author :
202
+ $ref : ' #/components/schemas/Author'
203
+ contributors :
204
+ type : array
205
+ items :
206
+ $ref : ' #/components/schemas/Author'
207
+ summaries :
208
+ type : array
209
+ uniqueItems : true
210
+ minItems : 1
211
+ items :
212
+ $ref : ' #/components/schemas/Summary'
213
+ id :
214
+ type : string
215
+ minLength : 1
216
+ title :
217
+ type : string
218
+ minLength : 1
219
+ description :
220
+ type :
221
+ - string
222
+ - ' null'
223
+ minLength : 1
224
+ thumbnail :
225
+ type :
226
+ - string
227
+ - ' null'
228
+ heldAt :
229
+ type : string
230
+ minLength : 1
231
+ required :
232
+ - author
233
+ - contributors
234
+ - summaries
235
+ - id
236
+ - title
237
+ - description
238
+ - heldAt
239
+ Author :
240
+ description : An author on a summary or event
241
+ type : object
242
+ properties :
243
+ username :
244
+ type : string
245
+ minLength : 1
246
+ discriminator :
247
+ type : string
248
+ minLength : 1
249
+ id :
250
+ type : string
251
+ minLength : 1
252
+ avatar :
253
+ type : string
254
+ minLength : 1
255
+ required :
256
+ - username
257
+ - discriminator
258
+ - id
259
+ - avatar
260
+ x-examples :
261
+ example-1 :
262
+ username : quin
263
+ discriminator : ' 3017'
264
+ id : ' 259053800755691520'
265
+ avatar : ' https://cdn.discordapp.com/avatars/259053800755691520/1b1a1c1a62756406ebb3319138e08d4b.png?size=128'
266
+ Summary :
267
+ description : ' '
268
+ type : object
269
+ x-examples :
270
+ example-1 :
271
+ id : 9d9c1a6ad69c4b5598e77a00bc9f369e
272
+ title : Test title
273
+ content : Test content
274
+ type : qnaanswer
275
+ isNew : true
276
+ thumbnail : null
277
+ featureType : null
278
+ properties :
279
+ id :
280
+ type : string
281
+ minLength : 1
282
+ title :
283
+ type : string
284
+ minLength : 1
285
+ content :
286
+ type : string
287
+ minLength : 1
288
+ type :
289
+ type : string
290
+ minLength : 1
291
+ isNew :
292
+ type : boolean
293
+ thumbnail :
294
+ type :
295
+ - ' null'
296
+ - string
297
+ featureType :
298
+ type :
299
+ - string
300
+ - ' null'
301
+ required :
302
+ - id
303
+ - title
304
+ - content
305
+ - type
306
+ - isNew
115
307
securitySchemes :
116
308
JWT :
117
309
type : http
0 commit comments