Skip to content

Commit

Permalink
Merge pull request #182 from sanika-wani/177-UpdateApiDocs
Browse files Browse the repository at this point in the history
[Added] update apidoc with index routes -177
  • Loading branch information
Hitansh159 authored Jul 6, 2023
2 parents 93577f9 + 341d707 commit 2d7fe1c
Showing 1 changed file with 42 additions and 7 deletions.
49 changes: 42 additions & 7 deletions _apidoc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,45 @@


// ------------------------------------------------------------------------------------------
// General apiDoc documentation blocks and old history blocks.
// ------------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------------
// Current Success.
// ------------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------------
// Current Errors.
// ------------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------------
// Current Permissions.
// ------------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------------
// History.
// ------------------------------------------------------------------------------------------


// ------------------------------------------------------------------------------------------
// Index.
// ------------------------------------------------------------------------------------------

/**
* @api {get} / Retrieve Home Information
* @apiName GetIndex
* @apiGroup index
*
* @apiSuccess {String} res server working.
*/

// ------------------------------------------------------------------------------------------
// Auth.
// ------------------------------------------------------------------------------------------

/**
* @api {post} /auth Login User
* @apiName LoginUser
* @apiGroup Authentication
*
* @apiParam {String} id User ID.
* @apiParam {String} password User password.
* @apiBody {String} id User ID.
* @apiBody {String} password User password.
*
* @apiSuccess {String} res Response message.
* @apiSuccess {Object} user User details.
Expand Down Expand Up @@ -68,8 +103,8 @@
* @apiGroup Authentication
* @apiDescription Sends an OTP (One-Time Password) to the user's email ID.
*
* @apiParam {String} uid User ID.
* @apiParam {String} emailId User email ID.
* @apiBody {String} uid User ID.
* @apiBody {String} emailId User email ID.
*
* @apiSuccess {String} res Response message.
*
Expand All @@ -88,9 +123,9 @@
* @apiGroup Authentication
* @apiDescription Resets the user's password using the provided OTP (One-Time Password).
*
* @apiParam {String} uid User ID.
* @apiParam {String} otp One-Time Password received by the user.
* @apiParam {String} password New password.
* @apiBody {String} uid User ID.
* @apiBody {String} otp One-Time Password received by the user.
* @apiBody {String} password New password.
*
* @apiSuccess {String} res Response message.
*
Expand Down

0 comments on commit 2d7fe1c

Please sign in to comment.