BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
141b8b67
Commit
141b8b67
authored
Dec 28, 2015
by
Michi302
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make single user API endpoint return Entities::User instead of Entities::UserBasic
parent
540eb0a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
users.md
doc/api/users.md
+7
-0
users.rb
lib/api/users.rb
+1
-1
No files found.
doc/api/users.md
View file @
141b8b67
...
...
@@ -123,6 +123,13 @@ Parameters:
"name"
:
"John Smith"
,
"state"
:
"active"
,
"avatar_url"
:
"http://localhost:3000/uploads/user/avatar/1/cd8.jpeg"
,
"created_at"
:
"2012-05-23T08:00:58Z"
,
"is_admin"
:
false
,
"bio"
:
null
,
"skype"
:
""
,
"linkedin"
:
""
,
"twitter"
:
""
,
"website_url"
:
""
}
```
...
...
lib/api/users.rb
View file @
141b8b67
...
...
@@ -39,7 +39,7 @@ module API
if
current_user
.
is_admin?
present
@user
,
with:
Entities
::
UserFull
else
present
@user
,
with:
Entities
::
User
Basic
present
@user
,
with:
Entities
::
User
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment