diff --git a/modules/notification/notification.controller.js b/modules/notification/notification.controller.js index 35e70fb..f0d21cd 100644 --- a/modules/notification/notification.controller.js +++ b/modules/notification/notification.controller.js @@ -16,6 +16,31 @@ const controllerOptions = { MODULE_NAME }; const extraControllers = { sendNotificationEvent: () => { + + /** + * notificationSample = { + * "title": "título de la notificación", + * "message": "cuerpo de la notificación", + * "recipients": { + * "eventId": "xxx-xxx-xxx-xxx", + * "segment": "ALL" | "ALL_VALIDATED" | "ALL_NOT_VALIDATED" | + * "PARTNERS_ALL" | "PARTNERS_VALIDATED" | "PARTNERS_NOT_VALIDATED" | + * "COLLEGE_ALL" | "COLLEGE_VALIDATED" | "COLLEGE_NOT_VALIDATED" + * }, + * "data": { + * "type": "message", + * "title": "Título del mensaje", + * "message": "Cuerpo del mensaje", + * "button": { + * "caption": "Etiqueta del boton", + * "url": "https://www.site.es", + * "screen": "", + * "paramId": "23", + * } + * } + *} + */ + //eventId //tittle //message