This simple GoLang application provides a local testing environment for services utilizing webhooks. It allows users to test webhook functionality without the need for external public services. Particularly useful when working with sensitive data, this server ensures that testing is secure and private.
- Local Testing Environment: Run the server locally to simulate webhook events within a controlled environment.
- Secure Testing with Sensitive Data: Keep your sensitive data secure by avoiding the use of external public services for webhook testing.
- GoLang installed on your machine.
-
Clone the repository:
git clone https://github.com/rkiwi/webHooks.git cd webHooks
-
Build the executable:
go build webHooks.go
-
./webHooks
The server provides several options that can be configured through command-line flags:
Enable/disable answer from service (Status: OK, Data received) (default true)
Enable/disable technical information of request (default true)
Set listening port of webhook catcher (default 8080)
Enable/disable pretty JSON formatting (default true)
-
Send your webhook requests to:
https://localhost:<your_port>
Example:
curl -X POST http://127.0.0.1:8080 \ ─╯ -d '{"key": "value"}'
-
Observe incoming webhook requests directly in the terminal where the server is running.