Skip to content

Commit

Permalink
Merge pull request #191 from tcet-opensource/176-update_apidoc_with_u…
Browse files Browse the repository at this point in the history
…ser_routes

updated apidoc with user routes
  • Loading branch information
Hitansh159 authored Jul 9, 2023
2 parents b74a53b + 5c7546f commit 6365cd9
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions _apidoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,32 @@
/**
* @api {get} / Retrieve Home Information
* @apiName GetIndex
* @apiGroup index
* @apiGroup Index
*
* @apiSuccess {String} res server working.
*/

// ------------------------------------------------------------------------------------------
// User.
// ------------------------------------------------------------------------------------------

/**
* @api {post} /add Add new User
* @apiName AddUser
* @apiGroup User
*
* @apiBody {String} name Name and surname of user
* @apiBody {String} password Password of the user
* @apiBody {String} emailId EmailID of the user. It would be the college assosiated emailID
* @apiBody {String} uid This will be their ERPID
* @apiBody {String="Student", "Faculty"} userType This will be type of user.
* currently we support only 2
*
* @apiSuccess {String} res returns success message "added user with \<ID\>".
*
* @apiError (Error 500) err Error while inserting in Database.
*/

// ------------------------------------------------------------------------------------------
// Auth.
// ------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -160,7 +181,7 @@
*/

/**
* @api {get} infrastructure/list Request Infrastructure List
* @api {get} infrastructure/list Get Infrastructure List
* @apiName GetInfrastructure
* @apiGroup Infrastructure
*
Expand Down

0 comments on commit 6365cd9

Please sign in to comment.