- Source:
Methods
(static) addProject(payload)
Create project
- Source:
- See:
POST /projects
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
payload |
object | - Properties
|
(static) addProjectFork(id, forked_from_id, payload)
Create a forked from/to relation between existing projects.
- Source:
- See:
POST /projects/:id/fork/:forked_from_id
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
id |
(required) - The ID of the project |
|||||||
forked_from_id |
undefined | forked_from_id |
||||||
payload |
object | - Properties
|
(static) addProjectHook(id, payload)
Add project hook
- Source:
- See:
POST /projects/:id/hooks
Parameters:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
(required) - The ID or NAMESPACE/PROJECT_NAME of a project |
|||||||||||||||||||||||||
payload |
object | - Properties
|
(static) addProjectMember(id, payload)
Add project team member
- Source:
- See:
POST /projects/:id/members
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
id |
(required) - The ID or NAMESPACE/PROJECT_NAME of a project |
||||||||||
payload |
object | - Properties
|
(static) addProjectsFork(id)
Fork project
- Source:
- See:
POST /projects/fork/:id
Parameters:
Name | Type | Description |
---|---|---|
id |
(required) - The ID of the project to be forked |
(static) addProjectShare(id, payload)
Share project with group
- Source:
- See:
POST /projects/:id/share
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
id |
(required) - The ID of a project |
||||||||||
payload |
object | - Properties
|
(static) addProjectsUser(user_id, payload)
Create project for user
- Source:
- See:
POST /projects/user/:user_id
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
user_id |
(required) - user_id of owner |
|||||||||||||||||||||||||||||||||||||
payload |
object | - Properties
|
(static) addProjectUpload(id, payload)
Upload a file
- Source:
- See:
POST /projects/:id/uploads
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
id |
(required) - The ID of the project |
|||||||
payload |
object | - Properties
|
(static) deleteProject(id)
Remove project
- Source:
- See:
DELETE /projects/:id
Parameters:
Name | Type | Description |
---|---|---|
id |
(required) - The ID of a project |
(static) deleteProjectFork(id)
Delete an existing forked from relationship
- Source:
- See:
DELETE /projects/:id/fork
Parameters:
Name | Type | Description |
---|---|---|
id |
(required) - The ID of the project |
(static) deleteProjectHook(id, hook_id)
Delete project hook
- Source:
- See:
DELETE /projects/:id/hooks/:hook_id
Parameters:
Name | Type | Description |
---|---|---|
id |
(required) - The ID or NAMESPACE/PROJECT_NAME of a project |
|
hook_id |
(required) - The ID of hook to delete |
(static) deleteProjectMember(id, user_id)
Remove project team member
- Source:
- See:
DELETE /projects/:id/members/:user_id
Parameters:
Name | Type | Description |
---|---|---|
id |
(required) - The ID or NAMESPACE/PROJECT_NAME of a project |
|
user_id |
(required) - The ID of a team member |
(static) getProject(id)
Get single project
- Source:
- See:
GET /projects/:id
Parameters:
Name | Type | Description |
---|---|---|
id |
(required) - The ID or NAMESPACE/PROJECT_NAME of a project |
(static) getProjectEvents(id)
Get project events
- Source:
- See:
GET /projects/:id/events
Parameters:
Name | Type | Description |
---|---|---|
id |
(required) - The ID or NAMESPACE/PROJECT_NAME of a project |
(static) getProjectHook(id, hook_id)
Get project hook
- Source:
- See:
GET /projects/:id/hooks/:hook_id
Parameters:
Name | Type | Description |
---|---|---|
id |
(required) - The ID or NAMESPACE/PROJECT_NAME of a project |
|
hook_id |
(required) - The ID of a project hook |
(static) getProjectHooks(id)
List project hooks
- Source:
- See:
GET /projects/:id/hooks
Parameters:
Name | Type | Description |
---|---|---|
id |
(required) - The ID or NAMESPACE/PROJECT_NAME of a project |
(static) getProjectMember(id, user_id)
Get project team member
- Source:
- See:
GET /projects/:id/members/:user_id
Parameters:
Name | Type | Description |
---|---|---|
id |
(required) - The ID or NAMESPACE/PROJECT_NAME of a project |
|
user_id |
(required) - The ID of a user |
(static) getProjectMembers(id)
List project team members
- Source:
- See:
GET /projects/:id/members
Parameters:
Name | Type | Description |
---|---|---|
id |
(required) - The ID or NAMESPACE/PROJECT_NAME of a project |
(static) getProjectRepositoryBranch(id, branch)
List single branch
- Source:
- See:
GET /projects/:id/repository/branches/:branch
Parameters:
Name | Type | Description |
---|---|---|
id |
(required) - The ID or NAMESPACE/PROJECT_NAME of a project |
|
branch |
(required) - The name of the branch. |
(static) getProjectRepositoryBranches(id)
List branches
- Source:
- See:
GET /projects/:id/repository/branches
Parameters:
Name | Type | Description |
---|---|---|
id |
(required) - The ID or NAMESPACE/PROJECT_NAME of a project |
(static) getProjects()
List projects
- Source:
- See:
GET /projects
(static) getProjectsAll()
List ALL projects
- Source:
- See:
GET /projects/all
(static) getProjectsOwned()
List owned projects
- Source:
- See:
GET /projects/owned
(static) getProjectsSearch(query)
Search for projects by name
- Source:
- See:
GET /projects/search/:query
Parameters:
Name | Type | Description |
---|---|---|
query |
(required) - A string contained in the project name |
(static) getProjectsStarred()
List starred projects
- Source:
- See:
GET /projects/starred
(static) updateProject(id, payload)
Edit project
- Source:
- See:
PUT /projects/:id
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
(required) - The ID of a project |
||||||||||||||||||||||||||||||||||||||||
payload |
object | - Properties
|
(static) updateProjectHook(id, hook_id, payload)
Edit project hook
- Source:
- See:
PUT /projects/:id/hooks/:hook_id
Parameters:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
(required) - The ID or NAMESPACE/PROJECT_NAME of a project |
|||||||||||||||||||||||||
hook_id |
(required) - The ID of a project hook |
|||||||||||||||||||||||||
payload |
object | - Properties
|
(static) updateProjectMember(id, user_id, payload)
Edit project team member
- Source:
- See:
PUT /projects/:id/members/:user_id
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
id |
(required) - The ID or NAMESPACE/PROJECT_NAME of a project |
|||||||
user_id |
(required) - The ID of a team member |
|||||||
payload |
object | - Properties
|
(static) updateProjectRepositoryBranchProtect(id, branch)
Protect single branch
- Source:
- See:
PUT /projects/:id/repository/branches/:branch/protect
Parameters:
Name | Type | Description |
---|---|---|
id |
(required) - The ID or NAMESPACE/PROJECT_NAME of a project |
|
branch |
(required) - The name of the branch. |
(static) updateProjectRepositoryBranchUnprotect(id, branch)
Unprotect single branch
- Source:
- See:
PUT /projects/:id/repository/branches/:branch/unprotect
Parameters:
Name | Type | Description |
---|---|---|
id |
(required) - The ID or NAMESPACE/PROJECT_NAME of a project |
|
branch |
(required) - The name of the branch. |