Add docs for create file API
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
e8bb32e623
commit
f64dd1b492
1 changed files with 16 additions and 1 deletions
|
@ -368,4 +368,19 @@ GET /projects/:id/repository/archive
|
|||
|
||||
Parameters:
|
||||
+ `id` (required) - The ID of a project
|
||||
+ `sha` (optional) - The commit sha to download defaults to the tip of the default branch
|
||||
+ `sha` (optional) - The commit sha to download defaults to the tip of the default branch
|
||||
|
||||
|
||||
## Create new file in repository
|
||||
|
||||
```
|
||||
POST /projects/:id/repository/files
|
||||
```
|
||||
|
||||
Parameters:
|
||||
|
||||
+ `file_name` (required) - The name of new file. Ex. class.rb
|
||||
+ `file_path` (optiona) - The path to new file. Ex. lib/
|
||||
+ `branch_name` (required) - The name of branch
|
||||
+ `content` (required) - File content
|
||||
+ `commit_message` (required) - Commit message
|
||||
|
|
Loading…
Reference in a new issue