summaryrefslogtreecommitdiff
path: root/lib/api/keys.rb
diff options
context:
space:
mode:
authorZ.J. van de Weg <zegerjan@gitlab.com>2016-09-13 20:55:00 +0200
committerZ.J. van de Weg <zegerjan@gitlab.com>2016-10-01 11:11:41 +0200
commitdd088d14bb51e9c0baee013b9d3b21a12a768051 (patch)
tree2b2dd43f6b564bda150b98eba0a9a2e048767ca6 /lib/api/keys.rb
parentfc6ae3fb583390b9955d1fc569168535925093cb (diff)
downloadgitlab-ce-dd088d14bb51e9c0baee013b9d3b21a12a768051.tar.gz
GrapeDSL for Keys endpointzj-grape-keys
Diffstat (limited to 'lib/api/keys.rb')
-rw-r--r--lib/api/keys.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/api/keys.rb b/lib/api/keys.rb
index 2b723b79504..767f27ef334 100644
--- a/lib/api/keys.rb
+++ b/lib/api/keys.rb
@@ -4,10 +4,9 @@ module API
before { authenticate! }
resource :keys do
- # Get single ssh key by id. Only available to admin users.
- #
- # Example Request:
- # GET /keys/:id
+ desc 'Get single ssh key by id. Only available to admin users' do
+ success Entities::SSHKeyWithUser
+ end
get ":id" do
authenticated_as_admin!