summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-07-29 15:40:08 +0200
committerDouwe Maan <douwe@gitlab.com>2015-07-29 15:40:08 +0200
commit4fb6ddfe06164c211f22e69fdec0b248bc61f6b4 (patch)
treea87b96026449a0fe25fb80114c89014a0cbdebb8 /lib/api/entities.rb
parenta06827bff934a7b387dc4280a555e0c81cc06604 (diff)
downloadgitlab-ce-4fb6ddfe06164c211f22e69fdec0b248bc61f6b4.tar.gz
Add ability to manage user email addresses via the API.
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 ecf1412dee5..ce3d09a32cd 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -31,6 +31,10 @@ module API
expose :private_token
end
+ class Email < Grape::Entity
+ expose :id, :email
+ end
+
class Hook < Grape::Entity
expose :id, :url, :created_at
end