Thanks to visit codestin.com
Credit goes to github.com

Skip to content

greenbone/exercise-admin-notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Admin Notification Service - Dummy

This repository provides a Admin Notification Dummy Service that runs on port 8080 for the HTTP URL /api/notify 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-alarm

Afterwards the service can be started with ./admin-alarm.

About

An example REST service as end point for an application execise

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •