Ability to fetch version information via the API.
Description
I am building a generic Gitlab interface for another product which could attach to any number of user's gitlab install (either gitlab.com OR a self-hosted gitlab CE). Some features needed to properly work with the product are only available in gitlab as of a certain version (e.g. 8.0). Currently there is no way to test or check for this.. e.g. working issue sorting (reference gitlab-org/gitlab-ee#983 ). Some of these can not easily be tested as no error is raised when unknown parameters are passed in to an endpoint.
Proposal
option 1) Extend the "/application/settings" endpoint to include version information (and/or an API revision number). option 2) Add a new the "/application/version" endpoint to include version information (and/or an API revision number).
In both cases the data should ONLY be provided if the request is user authenticated.. OR require client authentication (oath). This way the version info can be reasonably secured from people scraping gitlab installs for vulnerabilities.
Links / references
gitlab-org/gitlab-ee#983