Add username to User and UserBasic entities in API and in examples in doc.

This commit is contained in:
Cyril 2012-12-10 23:46:31 +01:00
parent b48852e789
commit d3b8952f8f
8 changed files with 28 additions and 2 deletions

View file

@ -1,12 +1,12 @@
module Gitlab
module Entities
class User < Grape::Entity
expose :id, :email, :name, :bio, :skype, :linkedin, :twitter,
expose :id, :username, :email, :name, :bio, :skype, :linkedin, :twitter,
:dark_scheme, :theme_id, :blocked, :created_at
end
class UserBasic < Grape::Entity
expose :id, :email, :name, :blocked, :created_at
expose :id, :username, :email, :name, :blocked, :created_at
end
class UserLogin < UserBasic