Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-02-08 15:46:22 +0300
committerRémy Coutable <remy@rymai.me>2017-02-08 15:46:22 +0300
commit64331de36040549531b543e862021263844af9bc (patch)
tree322ef201002a09241725b0d24ef3328bd751f056 /doc/api/repository_files.md
parent0fc474291eb84a8a128baea743c54ec661c2d44b (diff)
parent206efcdac47553668e961728f82f2b7204d21acf (diff)
Merge branch 'fix-api-delete-file-example' into 'master'
Fix the curl command for deleting files (DELETE instead of PUT) See merge request !8245
Diffstat (limited to 'doc/api/repository_files.md')
-rw-r--r--doc/api/repository_files.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/repository_files.md b/doc/api/repository_files.md
index 73dde599b7e..dbb3c1113e8 100644
--- a/doc/api/repository_files.md
+++ b/doc/api/repository_files.md
@@ -113,7 +113,7 @@ DELETE /projects/:id/repository/files
```
```bash
-curl --request PUT --header 'PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK' 'https://gitlab.example.com/api/v3/projects/13083/repository/files?file_path=app/project.rb&branch_name=master&author_email=author%40example.com&author_name=Firstname%20Lastname&commit_message=delete%20file'
+curl --request DELETE --header 'PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK' 'https://gitlab.example.com/api/v3/projects/13083/repository/files?file_path=app/project.rb&branch_name=master&author_email=author%40example.com&author_name=Firstname%20Lastname&commit_message=delete%20file'
```
Example response: