Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
cd5685ca
Commit
cd5685ca
authored
May 29, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4115 from bke-drewb/apidocs
Update api docs and remove old attribute from User entity.
parents
56ddf93f
07fd95f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
doc/api/users.md
doc/api/users.md
+8
-8
lib/api/entities.rb
lib/api/entities.rb
+1
-1
No files found.
doc/api/users.md
View file @
cd5685ca
...
...
@@ -14,32 +14,32 @@ GET /users
"username"
:
"john_smith"
,
"email"
:
"john@example.com"
,
"name"
:
"John Smith"
,
"
blocked"
:
false
,
"
state"
:
"active"
,
"created_at"
:
"2012-05-23T08:00:58Z"
,
"bio"
:
null
,
"skype"
:
""
,
"linkedin"
:
""
,
"twitter"
:
""
,
"dark_scheme"
:
false
,
"extern_uid"
:
"john.smith"
,
"provider"
:
"provider_name"
,
"theme_id"
:
1
"color_scheme_id"
:
2
},
{
"id"
:
2
,
"username"
:
"jack_smith"
,
"email"
:
"jack@example.com"
,
"name"
:
"Jack Smith"
,
"
blocked"
:
false
,
"
state"
:
"blocked"
,
"created_at"
:
"2012-05-23T08:01:01Z"
,
"bio"
:
null
,
"skype"
:
""
,
"linkedin"
:
""
,
"twitter"
:
""
,
"dark_scheme"
:
true
,
"extern_uid"
:
"jack.smith"
,
"provider"
:
"provider_name"
,
"theme_id"
:
1
"color_scheme_id"
:
3
}
]
```
...
...
@@ -63,16 +63,16 @@ Parameters:
"username"
:
"john_smith"
,
"email"
:
"john@example.com"
,
"name"
:
"John Smith"
,
"
blocked"
:
false
,
"
state"
:
"active"
,
"created_at"
:
"2012-05-23T08:00:58Z"
,
"bio"
:
null
,
"skype"
:
""
,
"linkedin"
:
""
,
"twitter"
:
""
,
"dark_scheme"
:
false
,
"extern_uid"
:
"john.smith"
,
"provider"
:
"provider_name"
,
"theme_id"
:
1
"color_scheme_id"
:
2
}
```
...
...
@@ -156,14 +156,14 @@ GET /user
"email"
:
"john@example.com"
,
"name"
:
"John Smith"
,
"private_token"
:
"dd34asd13as"
,
"
blocked"
:
false
,
"
state"
:
"active"
,
"created_at"
:
"2012-05-23T08:00:58Z"
,
"bio"
:
null
,
"skype"
:
""
,
"linkedin"
:
""
,
"twitter"
:
""
,
"dark_scheme"
:
false
,
"theme_id"
:
1
"color_scheme_id"
:
2
"is_admin"
:
false
,
"can_create_group"
:
true
,
"can_create_team"
:
true
,
...
...
lib/api/entities.rb
View file @
cd5685ca
...
...
@@ -2,7 +2,7 @@ module API
module
Entities
class
User
<
Grape
::
Entity
expose
:id
,
:username
,
:email
,
:name
,
:bio
,
:skype
,
:linkedin
,
:twitter
,
:
dark_scheme
,
:t
heme_id
,
:state
,
:created_at
,
:extern_uid
,
:provider
:
theme_id
,
:color_sc
heme_id
,
:state
,
:created_at
,
:extern_uid
,
:provider
end
class
UserSafe
<
Grape
::
Entity
...
...
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