2014-07-24 07:09:15 +02:00
|
|
|
#Running
|
|
|
|
To quickly run fail2rest just execute `go run *.go`
|
|
|
|
|
|
|
|
#Guidelines
|
|
|
|
|
2024-06-20 22:30:52 +02:00
|
|
|
* Put as much logic as possible into [fail2go](https://github.com/sean-der/fail2go)
|
2014-07-24 07:09:15 +02:00
|
|
|
* Make sure code is properly formated [gofmt](http://blog.golang.org/go-fmt-your-code)
|
|
|
|
* Make sure you code compiles
|
|
|
|
* If adding new REST endpoints try to follow the current style
|
|
|
|
|
|
|
|
#REST Style
|
|
|
|
Currently we have three top level endpoints
|
|
|
|
* /global (Get/Set information relating to fail2ban)
|
|
|
|
* /jail/{jail} (Get/Set information relating to a single jail)
|
|
|
|
* /wwhois/{ip} (Run a WHOIS on the given IP)
|