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:
Pavel Pletenev
2017-08-16 02:06:19 +03:00
committed by Sabe Jones
parent b27319313d
commit 8614f11a31
13 changed files with 188 additions and 188 deletions

View File

@@ -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