Merge pull request #1347 from AlexDenisov/api_project_creation
API for new project creation
This commit is contained in:
commit
cc03600b22
3 changed files with 76 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue