mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
update apidoc
This commit is contained in:
@@ -351,11 +351,15 @@ api.leaveChallenge = {
|
|||||||
* @apiGroup Challenge
|
* @apiGroup Challenge
|
||||||
* @apiDescription Get challenges the user has access to. Includes public challenges,
|
* @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.
|
* 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
|
* @apiSuccess {Object[]} challenges An array of challenges sorted with official
|
||||||
* challenges first, followed by the challenges
|
* challenges first, followed by the challenges
|
||||||
* in order from newest to oldest.
|
* 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 SuccessfulChallengeRequest
|
||||||
*
|
*
|
||||||
* @apiUse ChallengeArrayExample
|
* @apiUse ChallengeArrayExample
|
||||||
|
|||||||
Reference in New Issue
Block a user