diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2016-10-12 13:32:48 +0200 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-10-12 16:47:35 +0200 |
commit | b998479c81512b7c9a2cff28e7aabff3c4be0424 (patch) | |
tree | bb6ad3e585b1096f804dc354eebabb68bf93b9ec /lib/api/version.rb | |
parent | 7c07c07d7a2b93ab81964b9cd28736652da1370a (diff) | |
download | gitlab-ce-b998479c81512b7c9a2cff28e7aabff3c4be0424.tar.gz |
API: Version informationapi-version
Diffstat (limited to 'lib/api/version.rb')
-rw-r--r-- | lib/api/version.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/api/version.rb b/lib/api/version.rb new file mode 100644 index 00000000000..9ba576bd828 --- /dev/null +++ b/lib/api/version.rb @@ -0,0 +1,12 @@ +module API + class Version < Grape::API + before { authenticate! } + + desc 'Get the version information of the GitLab instance.' do + detail 'This feature was introduced in GitLab 8.13.' + end + get '/version' do + { version: Gitlab::VERSION, revision: Gitlab::REVISION } + end + end +end |