Skip to content
Snippets Groups Projects
Unverified Commit f64dd1b4 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Add docs for create file API

parent e8bb32e6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
\ No newline at end of file
+ `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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment