This repository provides a Admin Notification Dummy Service that runs on port
8080 for the HTTP URL /api/notification to get a POST request with the
following JSON data
{
"level": "warning",
"employeeAbbreviation": "mmu",
"message": "some message"
}You can call the service with curl to see if is running
curl --header "Content-Type: application/json" \
--request POST \
--data '{
"level": "warning",
"employeeAbbreviation": "mmu",
"message": "some message"
}' http://localhost:8080/api/notify
To build the service run
go build -o admin-alarmAfterwards the service can be started with ./admin-alarm.