Skip to content

Kreverson/notification-scheduler-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notification-scheduler-api

Register a message to be notified in the future in different sending types

Arquitetura

image

Diagrama de classe

image

Instalação

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'

About

Register a message to be notified in the future in different sending types

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages