diff options
author | Rémy Coutable <remy@rymai.me> | 2016-10-03 10:57:52 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-10-03 10:57:52 +0000 |
commit | 5bc1e93c19a9082e6f572f293c9c389c36573523 (patch) | |
tree | 2b02212080b4ffe39df6fd43c87a8153c3e2e55d /lib | |
parent | 2cbc7a788ebb761aa713cdeed94b07a6f6264cd9 (diff) | |
parent | dd088d14bb51e9c0baee013b9d3b21a12a768051 (diff) | |
download | gitlab-ce-5bc1e93c19a9082e6f572f293c9c389c36573523.tar.gz |
Merge branch 'zj-grape-keys' into 'master'
GrapeDSL for Keys endpoint
No changelog item as it doesn't change behaviour
Cherry-picket from !6330
See merge request !6631
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/keys.rb | 7 |
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! |