finish linting server

This commit is contained in:
Matteo Pagliazzi
2019-10-11 13:03:05 +02:00
parent 5aa371bf90
commit e09a70570e
40 changed files with 681 additions and 256 deletions

View File

@@ -17,7 +17,8 @@ const api = {};
* @apiName UserGet
* @apiGroup User
*
* @apiDescription The user profile contains data related to the authenticated user including (but not limited to);
* @apiDescription The user profile contains data related to the authenticated user
* including (but not limited to);
* Achievements
* Authentications (including types and timestamps)
* Challenges
@@ -38,7 +39,9 @@ const api = {};
* Tags
* TasksOrder (list of all ids for dailys, habits, rewards and todos)
*
* @apiParam (Query) {String} [userFields] A list of comma separated user fields to be returned instead of the entire document. Notifications are always returned.
* @apiParam (Query) {String} [userFields] A list of comma separated user fields
* to be returned instead of the entire document.
* Notifications are always returned.
*
* @apiExample {curl} Example use:
* curl -i https://habitica.com/api/v3/user?userFields=achievements,items.mounts
@@ -85,7 +88,8 @@ api.getUser = {
*
* @apiSuccess {Object} data The updated user object, the result is identical to the get user call
*
* @apiError (401) {NotAuthorized} messageUserOperationProtected Returned if the change is not allowed.
* @apiError (401) {NotAuthorized} messageUserOperationProtected Returned if the
* change is not allowed.
*
* @apiErrorExample {json} Error-Response:
* {