Commit 1b5c0b47 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'patch-29' into 'master'

Add notes about commits API to repository files documentation

See merge request gitlab-org/gitlab-ce!21876
parents 01c7a675 736a5d37
...@@ -90,6 +90,8 @@ Like [Get file from repository](repository_files.md#get-file-from-repository) yo ...@@ -90,6 +90,8 @@ Like [Get file from repository](repository_files.md#get-file-from-repository) yo
## Create new file in repository ## Create new file in repository
This allows you to create a single file. For creating multiple files with a single request see the [commits API](commits.html#create-a-commit-with-multiple-files-and-actions).
``` ```
POST /projects/:id/repository/files/:file_path POST /projects/:id/repository/files/:file_path
``` ```
...@@ -120,6 +122,8 @@ Parameters: ...@@ -120,6 +122,8 @@ Parameters:
## Update existing file in repository ## Update existing file in repository
This allows you to update a single file. For updating multiple files with a single request see the [commits API](commits.html#create-a-commit-with-multiple-files-and-actions).
``` ```
PUT /projects/:id/repository/files/:file_path PUT /projects/:id/repository/files/:file_path
``` ```
...@@ -160,6 +164,8 @@ Currently gitlab-shell has a boolean return code, preventing GitLab from specify ...@@ -160,6 +164,8 @@ Currently gitlab-shell has a boolean return code, preventing GitLab from specify
## Delete existing file in repository ## Delete existing file in repository
This allows you to delete a single file. For deleting multiple files with a singleh request see the [commits API](commits.html#create-a-commit-with-multiple-files-and-actions).
``` ```
DELETE /projects/:id/repository/files/:file_path DELETE /projects/:id/repository/files/:file_path
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment