update apidoc

This commit is contained in:
Matteo Pagliazzi
2020-11-19 19:40:26 +01:00
parent 284cfde935
commit f7b4d25657

View File

@@ -351,11 +351,15 @@ api.leaveChallenge = {
* @apiGroup Challenge
* @apiDescription Get challenges the user has access to. Includes public challenges,
* challenges belonging to the user's group, and challenges the user has already joined.
* Returns 10 results per page.
*
* @apiSuccess {Object[]} challenges An array of challenges sorted with official
* challenges first, followed by the challenges
* in order from newest to oldest.
*
* @apiParam (Query) {Number} page This parameter can be used to specify the page number
for the user challenges result (the initial page is number 0).
* @apiError (400) {BadRequest} queryPageInteger Page query parameter must be a positive integer
* @apiUse SuccessfulChallengeRequest
*
* @apiUse ChallengeArrayExample