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

@@ -43,8 +43,8 @@ let api = {};
* @apiName InviteToQuest
* @apiGroup Quest
*
* @apiParam {String} groupId The group _id (or 'party')
* @apiParam {String} questKey
* @apiParam (Path) {String} groupId The group _id (or 'party')
* @apiParam (Path) {String} questKey
*
* @apiSuccess {Object} data Quest object
*
@@ -158,7 +158,7 @@ api.inviteToQuest = {
* @apiName AcceptQuest
* @apiGroup Quest
*
* @apiParam {String} groupId The group _id (or 'party')
* @apiParam (Path) {String} groupId The group _id (or 'party')
*
* @apiSuccess {Object} data Quest Object
*
@@ -217,7 +217,7 @@ api.acceptQuest = {
* @apiName RejectQuest
* @apiGroup Quest
*
* @apiParam {String} groupId The group _id (or 'party')
* @apiParam (Path) {String} groupId The group _id (or 'party')
*
* @apiSuccess {Object} data Quest Object
*
@@ -277,7 +277,7 @@ api.rejectQuest = {
* @apiName ForceQuestStart
* @apiGroup Quest
*
* @apiParam {String} groupId The group _id (or 'party')
* @apiParam (Path) {String} groupId The group _id (or 'party')
*
* @apiSuccess {Object} data Quest Object
*
@@ -335,7 +335,7 @@ api.forceStart = {
* @apiName CancelQuest
* @apiGroup Quest
*
* @apiParam {String} groupId The group _id (or 'party')
* @apiParam (Path) {String} groupId The group _id (or 'party')
*
* @apiSuccess {Object} data Quest Object
*
@@ -389,7 +389,7 @@ api.cancelQuest = {
* @apiName AbortQuest
* @apiGroup Quest
*
* @apiParam {String} groupId The group _id (or 'party')
* @apiParam (Path) {String} groupId The group _id (or 'party')
*
* @apiSuccess {Object} data Quest Object
*
@@ -451,7 +451,7 @@ api.abortQuest = {
* @apiName LeaveQuest
* @apiGroup Quest
*
* @apiParam {String} groupId The group _id (or 'party')
* @apiParam (Path) {String} groupId The group _id (or 'party')
*
* @apiSuccess {Object} data Quest Object
*