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
d7ec7c79
Commit
d7ec7c79
authored
Oct 02, 2013
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed user teams api docs.
parent
55880751
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
210 deletions
+1
-210
README.md
doc/api/README.md
+1
-1
user_teams.md
doc/api/user_teams.md
+0
-209
No files found.
doc/api/README.md
View file @
d7ec7c79
...
...
@@ -117,7 +117,7 @@ When listing resources you can pass the following parameters:
+
[
Deploy Keys
](
deploy_keys.md
)
+
[
System Hooks
](
system_hooks.md
)
+
[
Groups
](
groups.md
)
+
[
User Teams
](
user_teams.md
)
## Clients
...
...
doc/api/user_teams.md
deleted
100644 → 0
View file @
55880751
## User teams
### List user teams
Get a list of user teams viewable by the authenticated user.
```
GET /user_teams
```
```
json
[
{
id
:
1
,
name
:
"User team 1"
,
path
:
"user_team1"
,
owner_id
:
1
},
{
id
:
2
,
name
:
"User team 2"
,
path
:
"user_team2"
,
owner_id
:
1
}
]
```
### Get single user team
Get a specific user team, identified by user team ID, which is viewable by the authenticated user.
```
GET /user_teams/:id
```
Parameters:
+
`id`
(required) - The ID of a user_team
```
json
{
id
:
1
,
name
:
"User team 1"
,
path
:
"user_team1"
,
owner_id
:
1
}
```
### Create user team
Creates new user team owned by user. Available only for admins.
```
POST /user_teams
```
Parameters:
+
`name`
(required) - new user team name
+
`path`
(required) - new user team internal name
## User team members
### List user team members
Get a list of project team members.
```
GET /user_teams/:id/members
```
Parameters:
+
`id`
(required) - The ID of a user_team
### Get user team member
Gets a user team member.
```
GET /user_teams/:id/members/:user_id
```
Parameters:
+
`id`
(required) - The ID of a user_team
+
`user_id`
(required) - The ID of a user
```
json
{
id
:
2
,
username
:
"john_doe"
,
email
:
"joh@doe.org"
,
name
:
"John Doe"
,
state
:
"active"
,
created_at
:
"2012-10-22T14:13:35Z"
,
access_level
:
30
}
```
### Add user team member
Adds a user to a user team.
```
POST /user_teams/:id/members
```
Parameters:
+
`id`
(required) - The ID of a user team
+
`user_id`
(required) - The ID of a user to add
+
`access_level`
(required) - Project access level
### Remove user team member
Removes user from user team.
```
DELETE /user_teams/:id/members/:user_id
```
Parameters:
+
`id`
(required) - The ID of a user team
+
`user_id`
(required) - The ID of a team member
## User team projects
### List user team projects
Get a list of project team projects.
```
GET /user_teams/:id/projects
```
Parameters:
+
`id`
(required) - The ID of a user_team
### Get user team project
Gets a user team project.
```
GET /user_teams/:id/projects/:project_id
```
Parameters:
+
`id`
(required) - The ID of a user_team
+
`project_id`
(required) - The ID of a user
```
json
{
id
:
12
,
name
:
"project1"
,
description
:
null
,
default_branch
:
"develop"
,
public
:
false
,
path
:
"project1"
,
path_with_namespace
:
"group1/project1"
,
issues_enabled
:
false
,
merge_requests_enabled
:
true
,
wall_enabled
:
true
,
wiki_enabled
:
false
,
created_at
:
"2013-03-11T12:59:08Z"
,
greatest_access_level
:
30
}
```
### Add user team project
Adds a project to a user team.
```
POST /user_teams/:id/projects
```
Parameters:
+
`id`
(required) - The ID of a user team
+
`project_id`
(required) - The ID of a project to add
+
`greatest_access_level`
(required) - Maximum project access level
### Remove user team project
Removes project from user team.
```
DELETE /user_teams/:id/projects/:project_id
```
Parameters:
+
`id`
(required) - The ID of a user team
+
`project_id`
(required) - The ID of a team project
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