summaryrefslogtreecommitdiff
path: root/lib/api/keys.rb
diff options
context:
space:
mode:
authorAlex Denisov <1101.debian@gmail.com>2012-09-16 18:21:59 +0300
committerAlex Denisov <1101.debian@gmail.com>2012-09-16 18:21:59 +0300
commit87d40fd276ade536e0b6b3019e52c2e1844e47ea (patch)
treec3c0792a8bd0e12dfe5439a8d595df41f916a5bf /lib/api/keys.rb
parentc23eb4082948322a1b690e0850c09bfc8df81589 (diff)
downloadgitlab-ce-87d40fd276ade536e0b6b3019e52c2e1844e47ea.tar.gz
Docs added
Diffstat (limited to 'lib/api/keys.rb')
-rw-r--r--lib/api/keys.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/api/keys.rb b/lib/api/keys.rb
index 96ab7029fe5..d58c7caf5ce 100644
--- a/lib/api/keys.rb
+++ b/lib/api/keys.rb
@@ -10,6 +10,14 @@ module Gitlab
get do
present current_user.keys, with: Entities::Key
end
+ # Get single key owned by currently authenticated user
+ #
+ # Example Request:
+ # GET /keys/:id
+ get "/:id" do
+ key = current_user.keys.find params[:id]
+ present key, with: Entities::Key
+ end
# Add new ssh key to currently authenticated user
#
# Parameters: