File tree Expand file tree Collapse file tree 1 file changed +57
-1
lines changed
Expand file tree Collapse file tree 1 file changed +57
-1
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,43 @@ paths:
243243 message :
244244 type : string
245245 example : Refresh token revoked
246-
246+ /profile/complete :
247+ post :
248+ tags :
249+ - Complete Profile
250+ summary : Complete user profile
251+ description : " "
252+ operationId : completeProfile
253+ security :
254+ - bearerAuth : []
255+ requestBody :
256+ description : Parameters to complete profile
257+ required : true
258+ content :
259+ application/json :
260+ schema :
261+ $ref : ' #/components/schemas/CompleteProfile'
262+ responses :
263+ " 409 " :
264+ $ref : " #/components/responses/BadRequest"
265+ " 200 " :
266+ description : Profile completed successfully
267+ content :
268+ application/json :
269+ schema :
270+ type : object
271+ properties :
272+ success :
273+ type : boolean
274+ description : If the request is a success
275+ example : true
276+ code :
277+ type : integer
278+ description : The status code
279+ example : 200
280+ message :
281+ type : string
282+ example : Profile completed !
247283
248284servers :
249285 - url : https://api.matcha.com
@@ -341,6 +377,7 @@ components:
341377 type : string
342378 solution :
343379 type : string
380+
344381 securitySchemes :
345382 accessToken :
346383 type : http
@@ -381,3 +418,22 @@ components:
381418 type : string
382419 example : dolphin2
383420 required : true
421+ CompleteProfile :
422+ type : object
423+ properties :
424+ gender :
425+ type : string
426+ enum : ["male", "female", "other"]
427+ birthdate :
428+ type : date
429+ example : 06/04/1998
430+ description : Formatted as DAY/MONTH/YEAR
431+ orientation :
432+ type : string
433+ enum : ["heterosexual", "homosexual", "bisexual", "other"]
434+ bio :
435+ type : string
436+ example : I like running around on horses
437+ tags :
438+ type : array
439+ example : ["food", "sex", "drugs"]
You can’t perform that action at this time.
0 commit comments