Serve API version list, test with an integration test.

This commit is contained in:
Daniel Smith
2014-10-28 17:20:40 -07:00
parent 1da5c444e8
commit dca7363459
6 changed files with 47 additions and 0 deletions

View File

@@ -45,3 +45,9 @@ func Get() Info {
func (info Info) String() string {
return info.GitVersion
}
// APIVersions lists the api versions that are available, to allow
// version negotiation.
type APIVersions struct {
Versions []string `json:"versions" yaml:"versions"`
}