r/javahelp • • Jul 14 '20

Creating a webhook in springboot?

I need to create a webhook that allows me to send a gzip link to another server, but the term webhook confuses me, can someone help me?

16 Upvotes

3 comments sorted by

7

u/rozularen Jul 14 '20

Hey, a webhook is like a trigger you pull when something happen in your web server. After that event takes place you make a request to wherever you configure, usually a POST request.

For example, when GitHub receives a new commit from a push you make, you can configure a hook after the push has been finished so GitHub "notifies" that the push just has been finished to some url you want

5

u/Batting1k Jul 14 '20 edited Jul 14 '20

It’s like a reverse REST API. You set up a server with an endpoint and you provide the URL of it to another sever. Whenever something interesting happens on that other sever, information gets sent to your server.

0

u/[deleted] Jul 14 '20

[deleted]