Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Denisov <1101.debian@gmail.com>2012-09-16 19:21:59 +0400
committerAlex Denisov <1101.debian@gmail.com>2012-09-16 19:21:59 +0400
commit87d40fd276ade536e0b6b3019e52c2e1844e47ea (patch)
treec3c0792a8bd0e12dfe5439a8d595df41f916a5bf /lib/api/keys.rb
parentc23eb4082948322a1b690e0850c09bfc8df81589 (diff)
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: