API: extend UserLogin entity from UserBasic
This commit is contained in:
parent
9aafe77e70
commit
3dd940d4cb
|
@ -9,8 +9,8 @@ module Gitlab
|
||||||
expose :id, :email, :name, :blocked, :created_at
|
expose :id, :email, :name, :blocked, :created_at
|
||||||
end
|
end
|
||||||
|
|
||||||
class UserLogin < Grape::Entity
|
class UserLogin < UserBasic
|
||||||
expose :id, :email, :name, :private_token, :blocked, :created_at
|
expose :private_token
|
||||||
end
|
end
|
||||||
|
|
||||||
class Hook < Grape::Entity
|
class Hook < Grape::Entity
|
||||||
|
@ -56,9 +56,7 @@ module Gitlab
|
||||||
end
|
end
|
||||||
|
|
||||||
class Key < Grape::Entity
|
class Key < Grape::Entity
|
||||||
expose :id,
|
expose :id, :title, :key
|
||||||
:title,
|
|
||||||
:key
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue