This commit is contained in:
David Arranz 2024-09-04 12:17:01 +02:00
parent 51103883db
commit 91c7db6a97

View File

@ -244,8 +244,8 @@ routes.get(
* @apiBody {String} email Email del participante, debe ser válido. * @apiBody {String} email Email del participante, debe ser válido.
* @apiBody {String} name Nombre del participante. * @apiBody {String} name Nombre del participante.
* @apiBody {String} Apellido del participante. * @apiBody {String} Apellido del participante.
* @apiBody {String} [profile] Tipo de participante (student/tutor/guest/free). * @apiBody {String} profile Tipo de participante (student/tutor/guest/free).
* @apiBody {String} [country] País del participante (ES/MX). * @apiBody {String} country País del participante (ES/MX).
* @apiBody {String} [entityId] Entidad del participante - Opcional - solo si son student/tutor/guest.* * @apiBody {String} [entityId] Entidad del participante - Opcional - solo si son student/tutor/guest.*
* @apiBody {number} [group_size] Cantidad participantes a solicitar - Opcional - solo si son tutores.* * @apiBody {number} [group_size] Cantidad participantes a solicitar - Opcional - solo si son tutores.*
* *
@ -256,65 +256,60 @@ routes.get(
* @apiSuccess {Boolean} validated Estado de validación de la inscripción. * @apiSuccess {Boolean} validated Estado de validación de la inscripción.
* *
* @apiSuccessExample {json} Ejemplo de Respuesta 1: * @apiSuccessExample {json} Ejemplo de Respuesta 1:
* { * ENVIO
* {
* "code" : "B24URD397", * "code" : "B24URD397",
* "email" : "rbrrbr2005@gmail.com", * "email" : "rbrrbr2005@gmail.com",
* "name" : "aaa", * "name" : "aaa",
* "surname" : "a", * "surname" : "a",
* "profile": "student", * "profile": "student",
* "country": "ES", * "country": "ES",
* "entityId": "757e6018-af85-11e9-aa90-000c295f0f58", * }
* "group_size": 5 * RESPUESTA
* } * {
* { * "stateText": "Inscripción confirmada",
* "stateText": "Inscripción confirmada", * "type": "onsite group",
* "id": "156e4aa1-cada-4e42-bdca-b458b798991c", * "code_ticket": "ENT-02220012",
* "eventId": "3028d48b-1f38-11ef-9b46-000c29a89113", * "validated": true
* "date": "2024-07-02T09:30:07.973Z", * }
* "userId": "6747d9eb-c64f-43a3-a4ac-6803b89966cb",
* "type": "onsite",
* "code_ticket": "ENT-77760177",
* "source": "app",
* "validated": true,
* "reservationId": null,
* "overflowEventId": null,
* "updatedAt": "2024-07-02T09:30:07.974Z",
* "createdAt": "2024-07-02T09:30:07.974Z"
* }
* *
* @apiSuccessExample {json} Ejemplo de Respuesta 2: * @apiSuccessExample {json} Ejemplo de Respuesta 2:
* { * ENVIO
* "code" : "BIL24-DEF219", * {
* "code" : "BIL24-DEF219", - Reserva en lista de espera
* "email" : "rbrrbr20067@gmail.com", * "email" : "rbrrbr20067@gmail.com",
* "name" : "aaa", * "name" : "aaa",
* "surname" : "a", * "surname" : "a",
* "profile": "studient", * "profile": "studient",
* } * }
* { * RESPUESTA
* {
* "stateText": "Pendiente confirmación para tu reserva", * "stateText": "Pendiente confirmación para tu reserva",
* "type": "onsite group", * "type": "onsite group",
* "code_ticket": "ENT-60030638", * "code_ticket": "ENT-60030638",
* "validated": false * "validated": false
* } * }
* *
* @apiSuccessExample {json} Ejemplo de Respuesta 3: * @apiSuccessExample {json} Ejemplo de Respuesta 3: Profesor solicita una reserva grupal
* { * ENVIO
* "code" : "", * {
* "email" : "rbrrbr20167@gmail.com", * "code" : "",
* "name" : "aaa", * "email" : "rbrrbr20167@gmail.com",
* "surname" : "a", * "name" : "aaa",
* "profile": "tutor", * "surname" : "a",
* "country": "ES", * "profile": "tutor",
* "entityId": "757e6018-af85-11e9-aa90-000c295f0f58", * "country": "ES",
* "group_size": 5 * "entityId": "757e6018-af85-11e9-aa90-000c295f0f58",
* } * "group_size": 5
* { * }
* "stateText": "Pendiente confirmación para tu reserva", * RESPUESTA
* "type": "onsite group", * {
* "code_ticket": "ENT-19161191", * "stateText": "Pendiente confirmación para tu reserva",
* "validated": false * "type": "onsite group",
* } * "code_ticket": "ENT-19161191",
*/ * "validated": false
* }
*/
routes.post( routes.post(
"/web/events/:id/inscriptions", "/web/events/:id/inscriptions",
@ -444,4 +439,8 @@ routes.get(
}) })
); );
// Comprobar si estoy inscrito al congreso por la web
routes.get("/web/events/:id/inscriptions/:email", eventInscriptionController.checkInscriptionByMail);
module.exports = routes; module.exports = routes;