|
21 | 21 | /** |
22 | 22 | * @api {get} / Retrieve Home Information |
23 | 23 | * @apiName GetIndex |
24 | | - * @apiGroup index |
| 24 | + * @apiGroup Index |
25 | 25 | * |
26 | 26 | * @apiSuccess {String} res server working. |
27 | 27 | */ |
28 | 28 |
|
| 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 | + |
29 | 50 | // ------------------------------------------------------------------------------------------ |
30 | 51 | // Auth. |
31 | 52 | // ------------------------------------------------------------------------------------------ |
|
160 | 181 | */ |
161 | 182 |
|
162 | 183 | /** |
163 | | - * @api {get} infrastructure/list Request Infrastructure List |
| 184 | + * @api {get} infrastructure/list Get Infrastructure List |
164 | 185 | * @apiName GetInfrastructure |
165 | 186 | * @apiGroup Infrastructure |
166 | 187 | * |
|
234 | 255 | * @apiError (Error 500) err Error message if there was an error during the deletion. |
235 | 256 | * |
236 | 257 | * */ |
| 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