summaryrefslogtreecommitdiff
path: root/doc/api/repositories.md
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-09 11:40:17 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-09 11:40:17 +0200
commitf64dd1b492952083449dc7f0e226cf7b20e1a1fb (patch)
tree17b3a26dd103c73bb3aec7afdc57c7d1a75ca004 /doc/api/repositories.md
parente8bb32e62355542e2fe3c17c06a433f355694788 (diff)
downloadgitlab-ce-f64dd1b492952083449dc7f0e226cf7b20e1a1fb.tar.gz
Add docs for create file API
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'doc/api/repositories.md')
-rw-r--r--doc/api/repositories.md17
1 files changed, 16 insertions, 1 deletions
diff --git a/doc/api/repositories.md b/doc/api/repositories.md
index 2769c22d6aa..b9fb8cc26a8 100644
--- a/doc/api/repositories.md
+++ b/doc/api/repositories.md
@@ -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