.
This commit is contained in:
parent
729e5032a7
commit
ab5b29d399
@ -146,10 +146,10 @@ routes.get(
|
|||||||
* "campaign_text": "",
|
* "campaign_text": "",
|
||||||
* "init_date": "2024-08-29T00:00:00.000Z",
|
* "init_date": "2024-08-29T00:00:00.000Z",
|
||||||
* "end_date": "2024-12-01T14:30:00.000Z",
|
* "end_date": "2024-12-01T14:30:00.000Z",
|
||||||
* "location": {
|
* "location": {
|
||||||
* "country": "España",
|
* "country": "España",
|
||||||
* "city": "Madrid",
|
* "city": "Madrid",
|
||||||
* "country_code": "ES"
|
* "country_code": "ES"
|
||||||
* },
|
* },
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
@ -176,7 +176,7 @@ routes.get(
|
|||||||
* @apiDescription Determina si hay aforo suficiente para el tamaño de grupo que se ha indicado.
|
* @apiDescription Determina si hay aforo suficiente para el tamaño de grupo que se ha indicado.
|
||||||
*
|
*
|
||||||
* @apiParam {String} id ID único del evento.
|
* @apiParam {String} id ID único del evento.
|
||||||
* @apiParam {Number} group_size número de entradas solicitadas para evento el evento.
|
* @apiParam {Number} [group_size=10] Tamaño del grupo para el cual se verifica el aforo (Parámetro de consulta).
|
||||||
*
|
*
|
||||||
* @apiSuccess {String} eventId ID único del evento.
|
* @apiSuccess {String} eventId ID único del evento.
|
||||||
* @apiSuccess {Number} group_size Tamaño del grupo para el cual se verifica el aforo.
|
* @apiSuccess {Number} group_size Tamaño del grupo para el cual se verifica el aforo.
|
||||||
@ -343,6 +343,38 @@ routes.post(
|
|||||||
// eventInscriptionController.createInscriptionMarketingList
|
// eventInscriptionController.createInscriptionMarketingList
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @api {get} /api/v4/web/events/:id/inscriptions/:email Comprobar Inscripción
|
||||||
|
* @apiName CheckInscription
|
||||||
|
* @apiGroup Inscriptions
|
||||||
|
* @apiVersion 1.0.0
|
||||||
|
* @apiDescription Este endpoint verifica si el correo electrónico proporcionado tiene una inscripción para el evento concreto.
|
||||||
|
*
|
||||||
|
* @apiParam {String} id Identificador único del evento.
|
||||||
|
* @apiParam {String} email Correo electrónico a comprobar.
|
||||||
|
*
|
||||||
|
* @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"
|
||||||
|
* }
|
||||||
|
*/
|
||||||
|
// Comprobar si estoy inscrito al congreso por la web
|
||||||
|
routes.get(
|
||||||
|
"/web/events/:id/inscriptions/:email",
|
||||||
|
isAPIKeyUser,
|
||||||
|
eventInscriptionController.checkInscriptionByMail);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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
|
||||||
@ -439,11 +471,4 @@ routes.get(
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
// Comprobar si estoy inscrito al congreso por la web
|
|
||||||
routes.get(
|
|
||||||
"/web/events/:id/inscriptions/:email",
|
|
||||||
isAPIKeyUser,
|
|
||||||
eventInscriptionController.checkInscriptionByMail);
|
|
||||||
|
|
||||||
|
|
||||||
module.exports = routes;
|
module.exports = routes;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user