Commit 3dd940d4cbd72afed38eba49b557823a6a55eac2
1 parent
9aafe77e
Exists in
master
and in
4 other branches
API: extend UserLogin entity from UserBasic
Showing
1 changed file
with
3 additions
and
5 deletions
Show diff stats
lib/api/entities.rb
| ... | ... | @@ -9,8 +9,8 @@ module Gitlab |
| 9 | 9 | expose :id, :email, :name, :blocked, :created_at |
| 10 | 10 | end |
| 11 | 11 | |
| 12 | - class UserLogin < Grape::Entity | |
| 13 | - expose :id, :email, :name, :private_token, :blocked, :created_at | |
| 12 | + class UserLogin < UserBasic | |
| 13 | + expose :private_token | |
| 14 | 14 | end |
| 15 | 15 | |
| 16 | 16 | class Hook < Grape::Entity |
| ... | ... | @@ -56,9 +56,7 @@ module Gitlab |
| 56 | 56 | end |
| 57 | 57 | |
| 58 | 58 | class Key < Grape::Entity |
| 59 | - expose :id, | |
| 60 | - :title, | |
| 61 | - :key | |
| 59 | + expose :id, :title, :key | |
| 62 | 60 | end |
| 63 | 61 | end |
| 64 | 62 | end | ... | ... |