summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-10-03 10:57:52 +0000
committerRémy Coutable <remy@rymai.me>2016-10-03 10:57:52 +0000
commit5bc1e93c19a9082e6f572f293c9c389c36573523 (patch)
tree2b02212080b4ffe39df6fd43c87a8153c3e2e55d
parent2cbc7a788ebb761aa713cdeed94b07a6f6264cd9 (diff)
parentdd088d14bb51e9c0baee013b9d3b21a12a768051 (diff)
downloadgitlab-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
-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!