mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
Refactor api description with @apiParam groups to make it more explicit (#8919)
* Refactor api description for auth.js with @apiParam groups * Refactor apiDoc toward better consistency * Fix missing groups for get requests * Fix missing groups for other request methods
This commit is contained in:
committed by
Sabe Jones
parent
b27319313d
commit
8614f11a31
@@ -12,8 +12,8 @@ let api = {};
|
||||
* @apiName UserAddPushDevice
|
||||
* @apiGroup User
|
||||
*
|
||||
* @apiParam {String} regId The id of the push device
|
||||
* @apiParam {String} type The type of push device
|
||||
* @apiParam (Body) {String} regId The id of the push device
|
||||
* @apiParam (Body) {String} type The type of push device
|
||||
*
|
||||
* @apiSuccess {Object} data List of push devices
|
||||
* @apiSuccess {String} message Success message
|
||||
@@ -52,11 +52,11 @@ api.addPushDevice = {
|
||||
|
||||
/**
|
||||
* @apiIgnore
|
||||
* @api {delete} /api/v3/user/push-devices remove a push device from a user
|
||||
* @api {delete} /api/v3/user/push-devices/:regId remove a push device from a user
|
||||
* @apiName UserRemovePushDevice
|
||||
* @apiGroup User
|
||||
*
|
||||
* @apiParam {String} regId The id of the push device
|
||||
* @apiParam (Path) {String} regId The id of the push device
|
||||
*
|
||||
* @apiSuccess {Object} data List of push devices
|
||||
* @apiSuccess {String} message Success message
|
||||
|
||||
Reference in New Issue
Block a user