diff options
author | Alex Denisov <1101.debian@gmail.com> | 2012-09-16 19:21:59 +0400 |
---|---|---|
committer | Alex Denisov <1101.debian@gmail.com> | 2012-09-16 19:21:59 +0400 |
commit | 87d40fd276ade536e0b6b3019e52c2e1844e47ea (patch) | |
tree | c3c0792a8bd0e12dfe5439a8d595df41f916a5bf /lib | |
parent | c23eb4082948322a1b690e0850c09bfc8df81589 (diff) |
Docs added
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/keys.rb | 8 |
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: |