Skip to content

chrfrantz/webhooks-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webhooks-demo

Webhooks demo for teaching purposes

Basic Usage Instructions

Version 1 (internal client)

Registration:

  • Start server.go to provide webhook registry (localhost:8080/webhook)

  • Start client.go (first review whether validation should be activated - see variable "validationLevel")

  • Send post request to localhost:8080/webhook with body

{ "url": "http://localhost:8081/invokedUrl", "event": "POST" }

(Note: Take URL from console output when service is started - which deviates for validating version)

Invocation:

  • Invoke localhost:8080/service with POST request

  • Observe invocation of registered webhook

Version 2 (external client)

{ "url": "url from webhook.site", "event": "POST" }

  • Now invoke as describe in Version 1. The external webhook should be invoked.

About

Webhooks demo for teaching purposes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages