Register a message to be notified in the future in different sending types
1 - Baixar o repositório e executar o docker da pasta /infra
docker compose up
2 - Executar o projeto
3 - Cadastrar uma notificação
curl --request POST \
--url http://localhost:8080/notifications \
--header 'content-type: application/json' \
--data '{
"datetime": "2025-03-07T00:04:00",
"destination": "[email protected]",
"message": "Pedido Enviado",
"channel": "EMAIL"
}'
4 - Listar a notificação
curl --request GET \
--url http://localhost:8080/notifications/1 \
--header 'content-type: application/json'
5 - Cancelar o agendamento do envio da notificação
curl --request DELETE \
--url http://localhost:8080/notifications/1 \
--header 'content-type: application/json'