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
Léo-Paul Géneau
gitlab-ce
Commits
956e9143
Commit
956e9143
authored
Mar 17, 2016
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing API docs on external user
[ci skip]
parent
51300d9b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
doc/api/users.md
doc/api/users.md
+1
-0
lib/api/users.rb
lib/api/users.rb
+2
-2
No files found.
doc/api/users.md
View file @
956e9143
...
@@ -220,6 +220,7 @@ Parameters:
...
@@ -220,6 +220,7 @@ Parameters:
-
`bio`
- User's biography
-
`bio`
- User's biography
-
`admin`
(optional) - User is admin - true or false (default)
-
`admin`
(optional) - User is admin - true or false (default)
-
`can_create_group`
(optional) - User can create groups - true or false
-
`can_create_group`
(optional) - User can create groups - true or false
-
`external`
(optional) - Flags the user as external - true or false(default)
Note, at the moment this method does only return a 404 error,
Note, at the moment this method does only return a 404 error,
even in cases where a 409 (Conflict) would be more appropriate,
even in cases where a 409 (Conflict) would be more appropriate,
...
...
lib/api/users.rb
View file @
956e9143
...
@@ -61,7 +61,7 @@ module API
...
@@ -61,7 +61,7 @@ module API
# admin - User is admin - true or false (default)
# admin - User is admin - true or false (default)
# can_create_group - User can create groups - true or false
# can_create_group - User can create groups - true or false
# confirm - Require user confirmation - true (default) or false
# confirm - Require user confirmation - true (default) or false
# external -
Is user an external user
- true or false(default)
# external -
Flags the user as external
- true or false(default)
# Example Request:
# Example Request:
# POST /users
# POST /users
post
do
post
do
...
@@ -108,7 +108,7 @@ module API
...
@@ -108,7 +108,7 @@ module API
# bio - Bio
# bio - Bio
# admin - User is admin - true or false (default)
# admin - User is admin - true or false (default)
# can_create_group - User can create groups - true or false
# can_create_group - User can create groups - true or false
# external -
Is user an external user
- true or false(default)
# external -
Flags the user as external
- true or false(default)
# Example Request:
# Example Request:
# PUT /users/:id
# PUT /users/:id
put
":id"
do
put
":id"
do
...
...
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