This is my first project using Go (Golang) as the primary language. While researching alerting solutions, I found that testing webhook and HTTP alerts is difficult without an application that can accurately display and lightly keep track of requests.
This simple project intends to bridge that gap by having an extremely lightweight service that can be a target for GET, POST, PUT, and DELETE requests, logging GETs and DELETEs into a single file, and saving POST and PUT requests into individual date-stamped files for easy viewing and retrieval.
The application has the following endpoints:
- host:8000/reset - Reset and Remove all files on server
- host:8000/info/get - Show all GET requests since last reset
- host:8000/info/delete - Show all DELETE requests since last reset
- host:8001 - Show all POST requests since last reset
- host:8002 - Show all PUT requests since last reset
The Gitlab repository contains a Docker image that is available via the following: registry.gitlab.com/stevenpg/go-http-echo
Example GET logging
Example POST logging (Files contain POST body)