diff options
author | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-09-13 21:55:00 +0300 |
---|---|---|
committer | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-10-01 12:11:41 +0300 |
commit | dd088d14bb51e9c0baee013b9d3b21a12a768051 (patch) | |
tree | 2b2dd43f6b564bda150b98eba0a9a2e048767ca6 /lib/api/keys.rb | |
parent | fc6ae3fb583390b9955d1fc569168535925093cb (diff) |
GrapeDSL for Keys endpoint
Diffstat (limited to 'lib/api/keys.rb')
-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! |