summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorArtem V. Navrotskiy <bozaro@users.noreply.github.com>2015-08-29 12:52:21 +0300
committerArtem V. Navrotskiy <navrotskiy@corp.mail.ru>2015-09-03 15:47:22 +0300
commit8ec59bd18bcacf13c012a34b3e37c2c9167bcc65 (patch)
tree4b654ce3e78bb82e5341fb13ca36a5c7005398bf /lib/api/entities.rb
parentff8fb6a6a26578c02f04a2f7450a769b2f293d58 (diff)
downloadgitlab-ce-8ec59bd18bcacf13c012a34b3e37c2c9167bcc65.tar.gz
Add API method for get user by ID of an SSH key
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 1f9dd6bc152..8dddcd7ccc3 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -199,6 +199,10 @@ module API
expose :id, :title, :key, :created_at
end
+ class SSHKeyWithUser < SSHKey
+ expose :user, using: Entities::UserFull
+ end
+
class Note < Grape::Entity
expose :id
expose :note, as: :body