Merge pull request #3146 from amacarthur/AdminAPIs
Additional Admin APIs
This commit is contained in:
commit
7c408960ce
9 changed files with 201 additions and 1 deletions
|
@ -113,6 +113,28 @@ Parameters:
|
|||
Will return created project with status `201 Created` on success, or `404 Not
|
||||
found` on fail.
|
||||
|
||||
## Create project for user
|
||||
|
||||
Create new project owned by user. Available only for admin
|
||||
|
||||
```
|
||||
POST /projects/user/:user_id
|
||||
```
|
||||
|
||||
Parameters:
|
||||
|
||||
+ `user_id` (required) - user_id of owner
|
||||
+ `name` (required) - new project name
|
||||
+ `description` (optional) - short project description
|
||||
+ `default_branch` (optional) - 'master' by default
|
||||
+ `issues_enabled` (optional) - enabled by default
|
||||
+ `wall_enabled` (optional) - enabled by default
|
||||
+ `merge_requests_enabled` (optional) - enabled by default
|
||||
+ `wiki_enabled` (optional) - enabled by default
|
||||
|
||||
Will return created project with status `201 Created` on success, or `404 Not
|
||||
found` on fail.
|
||||
|
||||
## List project team members
|
||||
|
||||
Get a list of project team members.
|
||||
|
@ -352,4 +374,4 @@ Parameters:
|
|||
|
||||
+ `id` (required) - Deploy key ID
|
||||
|
||||
Will return `200 OK` on success, or `404 Not Found` on fail.
|
||||
Will return `200 OK` on success, or `404 Not Found` on fail.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue