Happy Handlers and Swagger Codegen
Let's improve those HTTP handlers! In 2018, I released code that forces an HTTP status code and an error to be returned by all of the handlers so it's very clear what happens in each of the code paths. View commit.
There is a new bind package (thanks to the go-playground) that handles mapping data from a request to a struct and also validates it. View commit.
Swagger Code Generation
No one likes to write an API spec by hand so I added in Swagger annotations which allows us to use Swagger Codegen tool to generate a Swagger spec from it!
I worked with the Swagger team to get code added in that allows us to store the structs for each request inside of the func body to help clean up the cody. View commit.
You can view the latest Swagger spec here.