POST
Receive
Use this route to send notification inside the domain
api/v1/receiver
Body request:
{
"sender": {
"firstname": String,
"lastname": String,
"email": String
},
"recipients": String[],
"type": "CREATED" | "DELETED" | "UPDATED",
"payload": Object
}
Successfully response:
{
"message": string
}
POST
Sender
Use thi route from other components to send notification
api/v1/sender
Body request:
{
"sender": {
"firstname": String,
"lastname": String,
"email": String
},
"recipients": String[],
"type": "CREATED" | "DELETED" | "UPDATED",
"payload": Object
}
Successfully response:
{
"message": string
}