summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-09-20 17:44:44 +0300
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-09-20 17:45:07 +0300
commit9aafe77e708174aac697a8dcafc99b90e96be36e (patch)
treecb22fddcf3feeefb381a3ded1407ef11767395b5 /lib/api/entities.rb
parent37817cc31d890f1e79b31ae3d625fbace672451e (diff)
downloadgitlab-ce-9aafe77e708174aac697a8dcafc99b90e96be36e.tar.gz
I want be able to get token via api. Used for mobile applications
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 6241fc8f187..5d8cc2765b1 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -9,6 +9,10 @@ module Gitlab
expose :id, :email, :name, :blocked, :created_at
end
+ class UserLogin < Grape::Entity
+ expose :id, :email, :name, :private_token, :blocked, :created_at
+ end
+
class Hook < Grape::Entity
expose :id, :url
end
@@ -52,8 +56,8 @@ module Gitlab
end
class Key < Grape::Entity
- expose :id,
- :title,
+ expose :id,
+ :title,
:key
end
end