mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
Make responce codes uniform (#8865)
* Fix 201 responce wrong documentation * Fix 201 in challenges * Fix 201 in groups.js * Fix 201 in tags.js * Fix 201 in webhooks.js
This commit is contained in:
committed by
Sabe Jones
parent
5f3539da19
commit
0da1144635
@@ -83,7 +83,7 @@ let api = {};
|
||||
* @apiError (400) {NotAuthorized} partyMustbePrivate Party must have privacy set to private
|
||||
* @apiError (400) {NotAuthorized} messageGroupAlreadyInParty
|
||||
*
|
||||
* @apiSuccess {Object} data The created group (See <a href="https://github.com/HabitRPG/habitica/blob/develop/website/server/models/group.js" target="_blank">/website/server/models/group.js</a>)
|
||||
* @apiSuccess (201) {Object} data The created group (See <a href="https://github.com/HabitRPG/habitica/blob/develop/website/server/models/group.js" target="_blank">/website/server/models/group.js</a>)
|
||||
*
|
||||
* @apiSuccessExample {json} Private Guild:
|
||||
* HTTP/1.1 200 OK
|
||||
@@ -174,7 +174,7 @@ api.createGroup = {
|
||||
* @apiName CreateGroupPlan
|
||||
* @apiGroup Group
|
||||
*
|
||||
* @apiSuccess {Object} data The created group
|
||||
* @apiSuccess (201) {Object} data The created group
|
||||
*/
|
||||
api.createGroupPlan = {
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user