Merge remote-tracking branch 'upstream/develop' into apidocs-comment-fixes

This commit is contained in:
Alys
2020-02-20 09:47:44 +10:00
218 changed files with 14756 additions and 11762 deletions

View File

@@ -5,21 +5,22 @@ import { authWithHeaders } from '../../../middlewares/auth';
const api = {};
/**
* @api {post} /api/v3/user/allocate Allocate a single Stat Point
* @api {post} /api/v3/user/allocate
* Allocate a single Stat Point (previously called Attribute Point)
* @apiName UserAllocate
* @apiGroup User
* @apiDescription Allocates a single Stat Point (previously called Attribute Point).
* @apiDescription Allocates a single Stat Point.
*
* @apiParam (Query) {String="str","con","int","per"} stat The Stat to increase. Default is 'str'
*
* @apiParamExample {curl}
* @apiParamExample {curl} Example call:
* curl -X POST -d "" https://habitica.com/api/v3/user/allocate?stat=int
*
* @apiSuccess {Object} data Returns stats and notifications from the user profile
*
* @apiError {NotAuthorized} NoPoints You don't have enough Stat Points.
*
* @apiErrorExample {json}
* @apiErrorExample {json} Example error:
* {
* "success": false,
* "error": "NotAuthorized",
@@ -59,7 +60,7 @@ api.allocate = {
*
* @apiError {NotAuthorized} NoPoints You don't have enough Stat Points.
*
* @apiErrorExample {json}
* @apiErrorExample {json} Example error:
* {
* "success": false,
* "error": "NotAuthorized",