Skip to content

Commit

Permalink
make_api_doc_in_apidoc.js_for_create_request_infrastructure/add
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishekgoyal007 committed Jul 5, 2023
1 parent 022398c commit b1c43ff
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions _apidoc.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
// ------------------------------------------------------------------------------------------
// General apiDoc documentation blocks and old history blocks.
// ------------------------------------------------------------------------------------------

// ------------------------------------------------------------------------------------------
// Current Success.
// ------------------------------------------------------------------------------------------

// ------------------------------------------------------------------------------------------
// Current Errors.
// ------------------------------------------------------------------------------------------

// ------------------------------------------------------------------------------------------
// Current Permissions.
// ------------------------------------------------------------------------------------------

// ------------------------------------------------------------------------------------------
// History.
// ------------------------------------------------------------------------------------------
/**
* @api {post} /infrastructure/add Add Infrastructure
* @apiName AddInfrastructure
* @apiGroup Infrastructure
*
* @apiParam {String} name The name of the infrastructure.
* @apiParam {String} type The type of the infrastructure.
* @apiParam {String} wing The wing where the infrastructure is located.
* @apiParam {Number} floor The floor where the infrastructure is located.
* @apiParam {Number} capacity The capacity of the infrastructure.
*
* @apiSuccess {String} res Success message with the ID of the added infrastructure.
*
* @apiError (Error 500) DatabaseError Error while inserting in the database.
*
* @apiDescription Adds a new infrastructure to the system.
*/

0 comments on commit b1c43ff

Please sign in to comment.