summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/api/session.md12
-rw-r--r--doc/api/users.md5
-rw-r--r--lib/api/entities.rb2
3 files changed, 17 insertions, 2 deletions
diff --git a/doc/api/session.md b/doc/api/session.md
index c7e57aaca7a..d68788d5583 100644
--- a/doc/api/session.md
+++ b/doc/api/session.md
@@ -17,7 +17,17 @@ Parameters:
"email": "john@example.com",
"name": "John Smith",
"private_token": "dd34asd13as",
+ "blocked": false,
"created_at": "2012-05-23T08:00:58Z",
- "blocked": true
+ "bio": null,
+ "skype": "",
+ "linkedin": "",
+ "twitter": "",
+ "dark_scheme": false,
+ "theme_id": 1
+ "is_admin": false,
+ "can_create_group" : true,
+ "can_create_team" : true,
+ "can_create_project" : true
}
```
diff --git a/doc/api/users.md b/doc/api/users.md
index 70a2449f2e1..c05bcb3e539 100644
--- a/doc/api/users.md
+++ b/doc/api/users.md
@@ -154,6 +154,7 @@ GET /user
"username": "john_smith",
"email": "john@example.com",
"name": "John Smith",
+ "private_token": "dd34asd13as",
"blocked": false,
"created_at": "2012-05-23T08:00:58Z",
"bio": null,
@@ -162,6 +163,10 @@ GET /user
"twitter": "",
"dark_scheme": false,
"theme_id": 1
+ "is_admin": false,
+ "can_create_group" : true,
+ "can_create_team" : true,
+ "can_create_project" : true
}
```
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 92191e4b6e3..42dae53b4d1 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -13,7 +13,7 @@ module Gitlab
expose :id, :username, :email, :name, :state, :created_at
end
- class UserLogin < UserBasic
+ class UserLogin < User
expose :private_token
expose :is_admin?, as: :is_admin
expose :can_create_group?, as: :can_create_group