Skip to content

Commit 2e18824

Browse files
authored
Merge branch 'development' into 174-update_delete_Accreditation_apidoc
2 parents ee2797e + 89ebe94 commit 2e18824

File tree

1 file changed

+58
-2
lines changed

1 file changed

+58
-2
lines changed

_apidoc.js

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,32 @@
2121
/**
2222
* @api {get} / Retrieve Home Information
2323
* @apiName GetIndex
24-
* @apiGroup index
24+
* @apiGroup Index
2525
*
2626
* @apiSuccess {String} res server working.
2727
*/
2828

29+
// ------------------------------------------------------------------------------------------
30+
// User.
31+
// ------------------------------------------------------------------------------------------
32+
33+
/**
34+
* @api {post} /add Add new User
35+
* @apiName AddUser
36+
* @apiGroup User
37+
*
38+
* @apiBody {String} name Name and surname of user
39+
* @apiBody {String} password Password of the user
40+
* @apiBody {String} emailId EmailID of the user. It would be the college assosiated emailID
41+
* @apiBody {String} uid This will be their ERPID
42+
* @apiBody {String="Student", "Faculty"} userType This will be type of user.
43+
* currently we support only 2
44+
*
45+
* @apiSuccess {String} res returns success message "added user with \<ID\>".
46+
*
47+
* @apiError (Error 500) err Error while inserting in Database.
48+
*/
49+
2950
// ------------------------------------------------------------------------------------------
3051
// Auth.
3152
// ------------------------------------------------------------------------------------------
@@ -160,7 +181,7 @@
160181
*/
161182

162183
/**
163-
* @api {get} infrastructure/list Request Infrastructure List
184+
* @api {get} infrastructure/list Get Infrastructure List
164185
* @apiName GetInfrastructure
165186
* @apiGroup Infrastructure
166187
*
@@ -234,3 +255,38 @@
234255
* @apiError (Error 500) err Error message if there was an error during the deletion.
235256
*
236257
* */
258+
259+
/**
260+
* @api {post} /accreditation/update update accreditation details
261+
* @apiName UpdateAccreditation
262+
* @apiGroup Accreditation
263+
* @apiDescription update Existing accreditation
264+
*
265+
* @apiBody {String} id Id of the accreditation to be updated
266+
* @apiBody {String} [name] Accreditation name.
267+
* @apiBody {String} [agencyName] Agency name.
268+
* @apiBody {Date} [dateofAccreditation] Date of accreditation.
269+
* @apiBody {Date} [dateofExpiry] Date of expiry.
270+
*
271+
* @apiSuccess {String} res Accreditation updated.
272+
* @apiError (Error 500) err Error in updating database
273+
*
274+
*/
275+
276+
/**
277+
* @api {get} accreditation/list Get Accreditation List
278+
* @apiName GetAccreditation
279+
* @apiGroup Accreditation
280+
*
281+
* @apiQuery {String} [name] Name of accreditation .
282+
* @apiQuery {String} [agencyName] Name of agency that issued the accreditation.
283+
* @apiQuery {Date} [dateofAccreditation] Date on which accreditation was issued.
284+
* @apiQuery {Date} [dateofExpiry] Date till which accreditation is valid.
285+
*
286+
* @apiSuccess {accreditation[]} res Array of Filtered accreditation Doc .
287+
* @apiSuccess {String} accreditation.name Name of accreditation
288+
* @apiSuccess {String} accreditation.agencyName Name of agency that issued the accreditation.
289+
* @apiSuccess {Date} accreditation.dateofAccreditation Date on which accreditation was issued.
290+
* @apiSuccess {Date} accreditation.dateofExpiry Date till which accreditation is valid.
291+
*/
292+

0 commit comments

Comments
 (0)