Commit 985ecf0f045ce0d8a6fd0524935f12152bfe3918
1 parent
c1173e27
Exists in
master
and in
4 other branches
Docs added for Create Project API
Showing
1 changed file
with
38 additions
and
0 deletions
Show diff stats
doc/api/projects.md
| ... | ... | @@ -89,6 +89,44 @@ Parameters: |
| 89 | 89 | } |
| 90 | 90 | ``` |
| 91 | 91 | |
| 92 | +## Create project | |
| 93 | + | |
| 94 | +Create new project owned by user | |
| 95 | + | |
| 96 | +``` | |
| 97 | +POST /projects | |
| 98 | +``` | |
| 99 | + | |
| 100 | +Parameters: | |
| 101 | + | |
| 102 | ++ `name` (required) - new project name | |
| 103 | ++ `code` (optional) - new project code, used project name if not set | |
| 104 | ++ `path` (optional) - new project path, user project name if not set | |
| 105 | + | |
| 106 | +```json | |
| 107 | +{ | |
| 108 | + "id": 5, | |
| 109 | + "code": "gitlab", | |
| 110 | + "name": "gitlab", | |
| 111 | + "description": null, | |
| 112 | + "path": "gitlab", | |
| 113 | + "default_branch": "api", | |
| 114 | + "owner": { | |
| 115 | + "id": 1, | |
| 116 | + "email": "john@example.com", | |
| 117 | + "name": "John Smith", | |
| 118 | + "blocked": false, | |
| 119 | + "created_at": "2012-05-23T08:00:58Z" | |
| 120 | + }, | |
| 121 | + "private": true, | |
| 122 | + "issues_enabled": true, | |
| 123 | + "merge_requests_enabled": true, | |
| 124 | + "wall_enabled": true, | |
| 125 | + "wiki_enabled": true, | |
| 126 | + "created_at": "2012-05-30T12:49:20Z" | |
| 127 | +} | |
| 128 | +``` | |
| 129 | + | |
| 92 | 130 | ## Project repository branches |
| 93 | 131 | |
| 94 | 132 | Get a list of project repository branches sorted by name alphabetically. | ... | ... |