GET /version

This endpoint exposes the application version as defined at compilation time. Version can be set either:

// Holds binary revision string
// Set manually at build time using:
//    go build -ldflags "-X main.Rev=`git rev-parse --short HEAD`"
// Populated automatically at build / release time via .travis.yml
//   `gox -os="linux" -arch="386" -output="__" -ldflags "-X main.Rev=`git rev-parse --short HEAD`" -verbose ./...;`
// See issue #559
var Rev string

Sample responses

Version set

{"revision": "d6cd1e2bd19e03a81132a23b2025920577f84e37"},

Version not set

{"revision": "not-set"}`