mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
make further minor tweaks to apidocs that were previously changed
This commit is contained in:
@@ -29,7 +29,7 @@ const api = {};
|
||||
/**
|
||||
* @api {post} /api/v3/user/auth/local/register Register
|
||||
* @apiDescription Register a new user with email, login name, and password or
|
||||
* attach local authentication to a social-auth user
|
||||
* attach local authentication to a social auth user
|
||||
* @apiName UserRegisterLocal
|
||||
* @apiGroup User
|
||||
*
|
||||
|
||||
@@ -6,7 +6,9 @@ const api = {};
|
||||
/**
|
||||
* @api {post} /api/v3/cron Run cron
|
||||
* @apiName Cron
|
||||
* @apiDescription This causes cron to run. It assumes that the user has already been shown the Record Yesterday's Activity ("Check off any Dailies you did yesterday") screen and so it will immediately apply damage for incomplete due Dailies.
|
||||
* @apiDescription This causes cron to run. It assumes that the user has already been shown
|
||||
* the Record Yesterday's Activity ("Check off any Dailies you did yesterday") screen and
|
||||
* so it will immediately apply damage for incomplete due Dailies.
|
||||
* @apiGroup Cron
|
||||
*
|
||||
* @apiSuccess {Object} data An empty Object
|
||||
|
||||
@@ -659,7 +659,7 @@ api.getObjectionsToInteraction = {
|
||||
* @apiGroup Member
|
||||
*
|
||||
* @apiParam (Body) {String} message The message
|
||||
* @apiParam (Body) {UUID} toUserId The user to contact
|
||||
* @apiParam (Body) {UUID} toUserId The id of the user to contact
|
||||
*
|
||||
* @apiSuccess {Object} data.message The message just sent
|
||||
*
|
||||
|
||||
@@ -1477,7 +1477,7 @@ api.unlinkOneTask = {
|
||||
};
|
||||
|
||||
/**
|
||||
* @api {post} /api/v3/tasks/clearCompletedTodos Delete user's completed To-Dos
|
||||
* @api {post} /api/v3/tasks/clearCompletedTodos Delete user's completed todos
|
||||
* @apiName ClearCompletedTodos
|
||||
* @apiDescription Deletes all of a user's completed To-Dos except those belonging to active Challenges and Group Plans
|
||||
* @apiGroup Task
|
||||
|
||||
@@ -230,7 +230,8 @@ api.updateUser = {
|
||||
* @apiName UserDelete
|
||||
* @apiGroup User
|
||||
*
|
||||
* @apiParam (Body) {String} password The user's password if the account uses local authentication, otherwise the localized word "DELETE"
|
||||
* @apiParam (Body) {String} password The user's password if the account uses local authentication,
|
||||
* otherwise the localized word "DELETE"
|
||||
* @apiParam (Body) {String} feedback User's optional feedback explaining reasons for deletion
|
||||
*
|
||||
* @apiSuccess {Object} data An empty Object
|
||||
@@ -244,7 +245,8 @@ api.updateUser = {
|
||||
* @apiError {BadRequest} MissingPassword Missing password.
|
||||
* @apiError {BadRequest} NotAuthorized Wrong password.
|
||||
* @apiError {BadRequest} NotAuthorized Please type DELETE in all capital letters to delete your account.
|
||||
* @apiError {BadRequest} BadRequest Account deletion feedback is limited to 10,000 characters. For lengthy feedback, email ${TECH_ASSISTANCE_EMAIL}.
|
||||
* @apiError {BadRequest} BadRequest Account deletion feedback is limited to 10,000 characters.
|
||||
* For lengthy feedback, email ${TECH_ASSISTANCE_EMAIL}.
|
||||
* @apiError {BadRequest} NotAuthorized You have an active subscription, cancel your plan before deleting your account.
|
||||
*
|
||||
* @apiErrorExample {json}
|
||||
|
||||
Reference in New Issue
Block a user