Comment on page
webhook
Sometimes we might need to communicate directly over HTTP instead of JSON-RPC. In this example, the
helloWorldOverHttp
implemented in the HelloWorldCronExample
class will be triggered by an HTTP request.- 1.Run
git clone https://github.com/Genez-io/genezio-examples
- 2.Navigate to the folder
cd ./genezio-examples/javascript/webhook
Run
genezio local
in the server/
folder. This will start a local web server. The URL will be printed and it can be used to send requests to the method.Run
genezio deploy
in the /server
folder.
Last modified 2mo ago