.
This commit is contained in:
parent
0c79542dd7
commit
e6e781214b
@ -403,6 +403,37 @@ routes.post(
|
|||||||
// Comprobar si estoy inscrito al congreso por la web
|
// Comprobar si estoy inscrito al congreso por la web
|
||||||
routes.get("/web/events/:id/inscriptions/:email", isAPIKeyUser, eventInscriptionController.checkInscriptionByMail);
|
routes.get("/web/events/:id/inscriptions/:email", isAPIKeyUser, eventInscriptionController.checkInscriptionByMail);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @api {delete} /api/v4/web/inscriptions/:id Eliminar inscripcion
|
||||||
|
* @apiName DeleteInscription
|
||||||
|
* @apiGroup Inscriptions
|
||||||
|
* @apiVersion 1.0.0
|
||||||
|
* @apiDescription Este endpoint elimina inscripción.
|
||||||
|
*
|
||||||
|
* @apiParam {String} id Identificador único de la inscripcion.
|
||||||
|
*
|
||||||
|
* @apiSuccess {String} message Mensaje que indica el estado de la inscripción.
|
||||||
|
* @apiSuccessExample {json} Ejemplo de Respuesta Exitosa:
|
||||||
|
* HTTP/1.1 200 OK
|
||||||
|
* {
|
||||||
|
* "message": "Inscripción confirmada"
|
||||||
|
* }
|
||||||
|
*
|
||||||
|
* @apiError (Error 404) NotFound No hay inscripción con el correo electrónico proporcionado.
|
||||||
|
* @apiErrorExample {json} Ejemplo de Respuesta Fallida:
|
||||||
|
* HTTP/1.1 404 Not Found
|
||||||
|
* {
|
||||||
|
* "message": "No hay inscripción con ese email"
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
// Borrar una inscripción
|
||||||
|
routes.delete(
|
||||||
|
"web/inscriptions/:id",
|
||||||
|
isAPIKeyUser,
|
||||||
|
eventInscriptionController.deleteInscription
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @api {get} /api/v4/web/entities/colleges Lista de Entidades Educativas
|
* @api {get} /api/v4/web/entities/colleges Lista de Entidades Educativas
|
||||||
* @apiName GetColleges
|
* @apiName GetColleges
|
||||||
@ -499,4 +530,5 @@ routes.get(
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
module.exports = routes;
|
module.exports = routes;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user