Skip to content

Commit

Permalink
Merge pull request #198 from tcet-opensource/196-get_query_missing_ID
Browse files Browse the repository at this point in the history
updated request that return _id
  • Loading branch information
TejasNair9977 authored Aug 17, 2023
2 parents 16af0f8 + 5fce746 commit b14151f
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions _apidoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,14 @@
* @apiName GetInfrastructure
* @apiGroup Infrastructure
*
* @apiQuery {String} name Name of Infrastructure .
* @apiQuery {String} type Type of Infrastructure. One of possible Lab, Classroom.
* @apiQuery {String} wing Wing of Infrastructure. One of possible A,B,C.
* @apiQuery {Number} floor Floor of Infrastructure.
* @apiQuery {Number} capacity Capacity of Infrastructure.
* @apiQuery {String} [name] Name of Infrastructure .
* @apiQuery {String} [type] Type of Infrastructure. One of possible Lab, Classroom.
* @apiQuery {String} [wing] Wing of Infrastructure. One of possible A,B,C.
* @apiQuery {Number} [floor] Floor of Infrastructure.
* @apiQuery {Number} [capacity] Capacity of Infrastructure.
*
* @apiSuccess {Infrastructure[]} res Array of Filtered Infrastructure Doc .
* @apiSuccess {String} infrastructure._id ID of document given by database.
* @apiSuccess {String} infrastructure.name Name of Infrastructure
* @apiSuccess {String} infrastructure.type Type of Infrastructure. One of possible Lab, Classroom.
* @apiSuccess {String} infrastructure.wing Wing of Infrastructure. One of possible A,B,C.
Expand Down Expand Up @@ -290,7 +291,7 @@
* @apiError (Error 500) err Error in updating database
*
*/

/**
* @api {get} accreditation/list Get Accreditation List
* @apiName GetAccreditation
Expand All @@ -301,10 +302,10 @@
* @apiQuery {Date} [dateofAccreditation] Date on which accreditation was issued.
* @apiQuery {Date} [dateofExpiry] Date till which accreditation is valid.
*
* @apiSuccess {accreditation[]} res Array of Filtered accreditation Doc .
* @apiSuccess {String} accreditation.name Name of accreditation
* @apiSuccess {accreditation[]} res Array of Filtered accreditation Doc.
* @apiSuccess {String} accreditation._id ID of document given by database.
* @apiSuccess {String} accreditation.name Name of accreditation.
* @apiSuccess {String} accreditation.agencyName Name of agency that issued the accreditation.
* @apiSuccess {Date} accreditation.dateofAccreditation Date on which accreditation was issued.
* @apiSuccess {Date} accreditation.dateofExpiry Date till which accreditation is valid.
*/

0 comments on commit b14151f

Please sign in to comment.