Add notes about commits API to repository files documentation
This commit is contained in:
parent
4c8d2232ca
commit
736a5d3709
1 changed files with 6 additions and 0 deletions
|
@ -90,6 +90,8 @@ Like [Get file from repository](repository_files.md#get-file-from-repository) yo
|
|||
|
||||
## 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
|
||||
```
|
||||
|
@ -120,6 +122,8 @@ Parameters:
|
|||
|
||||
## 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
|
||||
```
|
||||
|
@ -160,6 +164,8 @@ Currently gitlab-shell has a boolean return code, preventing GitLab from specify
|
|||
|
||||
## 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
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue