Skip to content

Commit 5fce746

Browse files
committed
updated request that return _id
1 parent 16af0f8 commit 5fce746

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

_apidoc.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,14 @@
185185
* @apiName GetInfrastructure
186186
* @apiGroup Infrastructure
187187
*
188-
* @apiQuery {String} name Name of Infrastructure .
189-
* @apiQuery {String} type Type of Infrastructure. One of possible Lab, Classroom.
190-
* @apiQuery {String} wing Wing of Infrastructure. One of possible A,B,C.
191-
* @apiQuery {Number} floor Floor of Infrastructure.
192-
* @apiQuery {Number} capacity Capacity of Infrastructure.
188+
* @apiQuery {String} [name] Name of Infrastructure .
189+
* @apiQuery {String} [type] Type of Infrastructure. One of possible Lab, Classroom.
190+
* @apiQuery {String} [wing] Wing of Infrastructure. One of possible A,B,C.
191+
* @apiQuery {Number} [floor] Floor of Infrastructure.
192+
* @apiQuery {Number} [capacity] Capacity of Infrastructure.
193193
*
194194
* @apiSuccess {Infrastructure[]} res Array of Filtered Infrastructure Doc .
195+
* @apiSuccess {String} infrastructure._id ID of document given by database.
195196
* @apiSuccess {String} infrastructure.name Name of Infrastructure
196197
* @apiSuccess {String} infrastructure.type Type of Infrastructure. One of possible Lab, Classroom.
197198
* @apiSuccess {String} infrastructure.wing Wing of Infrastructure. One of possible A,B,C.
@@ -290,7 +291,7 @@
290291
* @apiError (Error 500) err Error in updating database
291292
*
292293
*/
293-
294+
294295
/**
295296
* @api {get} accreditation/list Get Accreditation List
296297
* @apiName GetAccreditation
@@ -301,10 +302,10 @@
301302
* @apiQuery {Date} [dateofAccreditation] Date on which accreditation was issued.
302303
* @apiQuery {Date} [dateofExpiry] Date till which accreditation is valid.
303304
*
304-
* @apiSuccess {accreditation[]} res Array of Filtered accreditation Doc .
305-
* @apiSuccess {String} accreditation.name Name of accreditation
305+
* @apiSuccess {accreditation[]} res Array of Filtered accreditation Doc.
306+
* @apiSuccess {String} accreditation._id ID of document given by database.
307+
* @apiSuccess {String} accreditation.name Name of accreditation.
306308
* @apiSuccess {String} accreditation.agencyName Name of agency that issued the accreditation.
307309
* @apiSuccess {Date} accreditation.dateofAccreditation Date on which accreditation was issued.
308310
* @apiSuccess {Date} accreditation.dateofExpiry Date till which accreditation is valid.
309311
*/
310-

0 commit comments

Comments
 (0)