diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-09-03 01:48:51 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-09-03 01:48:51 -0700 |
commit | cc03600b22342a541ab1b4617eaf4d38d6d2d1da (patch) | |
tree | 5e497240ebd41b8a148173b11aa1c8b9ee57ba16 /doc/api/projects.md | |
parent | 6ec909cfd038c8b6510d14144b28425c599fc1bd (diff) | |
parent | 2bd1682ab469687f0dce719f1417c9b03fa3a8db (diff) | |
download | gitlab-ce-cc03600b22342a541ab1b4617eaf4d38d6d2d1da.tar.gz |
Merge pull request #1347 from AlexDenisov/api_project_creation
API for new project creation
Diffstat (limited to 'doc/api/projects.md')
-rw-r--r-- | doc/api/projects.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md index d680b5d8597..b0c1e65709c 100644 --- a/doc/api/projects.md +++ b/doc/api/projects.md @@ -89,6 +89,24 @@ Parameters: } ``` +## Create project + +Create new project owned by user + +``` +POST /projects +``` + +Parameters: + ++ `name` (required) - new project name ++ `code` (optional) - new project code, uses project name if not set ++ `path` (optional) - new project path, uses project name if not set + +Will return created project with status `201 Created` on success, or `404 Not +found` on fail. + + ## Project repository branches Get a list of project repository branches sorted by name alphabetically. |