jsdoc for express routes

/* * @api {HTTP_METHOD} /route * @apiName Route Name * @apiGroup Route Group * @apiVersion 1.0.0 * @apiDescription Description of the route. * * @apiParam {Type} param_name Description of the parameter. * * @apiSuccess {Type} success_field Description of the success field. * * @apiError {Type} error_field Description of the error field. /

/* * @api {POST} /user/register * @apiName Register User * @apiGroup User Management * @apiVersion 1.0.0 * @apiDescription Registers a new user. * * @apiParam {String} username The username of the user. * @apiParam {String} password The password of the user. * * @apiSuccess {String} message A success message. * * @apiError {String} error An error message. /

/* * @api {GET} /user/:id * @apiName Get User * @apiGroup User Management * @apiVersion 1.0.0 * @apiDescription Retrieves user information by ID. * * @apiParam {Number} id The ID of the user. * * @apiSuccess {Object} user The user object. * * @apiError {String} error An error message. /

/* * @api {PUT} /user/:id * @apiName Update User * @apiGroup User Management * @apiVersion 1.0.0 * @apiDescription Updates user information by ID. * * @apiParam {Number} id The ID of the user. * @apiParam {String} [username] The updated username of the user. * @apiParam {String} [password] The updated password of the user. * * @apiSuccess {Object} user The updated user object. * * @apiError {String} error An error message. /

/* * @api {DELETE} /user/:id * @apiName Delete User * @apiGroup User Management * @apiVersion 1.0.0 * @apiDescription Deletes a user by ID. * * @apiParam {Number} id The ID of the user. * * @apiSuccess {String} message A success message. * * @apiError {String} error An error message. /