|
309 | 309 | * @apiSuccess {Date} accreditation.dateofAccreditation Date on which accreditation was issued. |
310 | 310 | * @apiSuccess {Date} accreditation.dateofExpiry Date till which accreditation is valid. |
311 | 311 | */ |
| 312 | +//------------------------------------------------------------------------------------------ |
| 313 | +// Tutorials. |
| 314 | +// ------------------------------------------------------------------------------------------ |
| 315 | + |
| 316 | +/** |
| 317 | + * @api {post} /tutorial/add Add Tutorial |
| 318 | + * @apiName AddTutorial |
| 319 | + * @apiGroup Tutorial |
| 320 | + * |
| 321 | + * @apiBody {Number} no The number of tutorial. |
| 322 | + * @apiBody {String} title The title of tutorial. |
| 323 | + * @apiBody {Number} hours The hours required for tutorial . |
| 324 | + * @apiBody {String} cognitiveLevel The cognitiveLvel of tutorial. |
| 325 | + |
| 326 | + * |
| 327 | + * @apiSuccess {String} res Success message with the ID of the added tutorial. |
| 328 | + * |
| 329 | + * @apiError (Error 500) DatabaseError Error while inserting in the database. |
| 330 | + * |
| 331 | + * @apiDescription Adds a new tutorial to the system. |
| 332 | + */ |
| 333 | + |
| 334 | +/** |
| 335 | + * @api {get} tutorial/list Get Tutorial List |
| 336 | + * @apiName GetTutorial |
| 337 | + * @apiGroup Tutorial |
| 338 | + * |
| 339 | + * @apiQuery {Number} [no] Number of Tutorial. |
| 340 | + * @apiQuery {String} [title] Title of Tutorial. |
| 341 | + * @apiQuery {Number} [hours] Hours required for Tutorial |
| 342 | + * @apiQuery {String} [cognitiveLevel] Level of Tutorial. |
| 343 | + |
| 344 | + * |
| 345 | + * @apiSuccess {Tutorial[]} res Array of Filtered Tutorial Doc . |
| 346 | + * @apiSuccess {String} tutorial._id ID of document given by database. |
| 347 | + * @apiSuccess {Number} tutorial.no Number of Tutorial. |
| 348 | + * @apiSuccess {String} tutorial.title Title of Tutorial. |
| 349 | + * @apiSuccess {String} tutorial.hours Hours of Tutorial. |
| 350 | + * @apiSuccess {Number} tutorial.cognitiveLevel CognitiveLevel of Tutorial. |
| 351 | + */ |
| 352 | + |
| 353 | +/** |
| 354 | + * @api {delete} /tutorial/delete/:tutorialId Delete Tutorial |
| 355 | + * @apiName DeleteTutorial, |
| 356 | + * @apiGroup Tutorial |
| 357 | + * |
| 358 | + * @apiParam {String} tutorialId The ID of the tutorial document to delete. |
| 359 | + * |
| 360 | + * @apiSuccess {String} res Success message indicating the deletion. |
| 361 | + * |
| 362 | + * @apiError (Error 500) err Error message if there was an error during the deletion. |
| 363 | + * |
| 364 | +* */ |
| 365 | +/** |
| 366 | + * @api {post} /tutorial/update Update tutorial details |
| 367 | + * @apiName UpdateTutorial |
| 368 | + * @apiGroup Tutorial |
| 369 | + * @apiDescription update Existing Tutorial details |
| 370 | + * |
| 371 | + * @apiBody {String} id Id of the tutorial to be updated |
| 372 | + * @apiBody {Number} [no] The no of tutorial. |
| 373 | + * @apiBody {String} [title] The title of tutorial. |
| 374 | + * @apiBody {String} [hours] The hours required for the tutorial. |
| 375 | + * @apiBody {Number} [cognitiveLevel] The cognitiveLevel of tutorial. |
| 376 | +
|
| 377 | + * |
| 378 | + * @apiSuccess {String} res tutorial updated. |
| 379 | + * @apiError (Error 500) err Error in updating database |
| 380 | + * |
| 381 | + */ |
312 | 382 |
|
313 | 383 | // ------------------------------------------------------------------------------------------ |
314 | 384 | // Timetable. |
|
0 commit comments