diff options
author | Rémy Coutable <remy@rymai.me> | 2017-02-08 12:46:22 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-02-08 12:46:22 +0000 |
commit | 64331de36040549531b543e862021263844af9bc (patch) | |
tree | 322ef201002a09241725b0d24ef3328bd751f056 /doc | |
parent | 0fc474291eb84a8a128baea743c54ec661c2d44b (diff) | |
parent | 206efcdac47553668e961728f82f2b7204d21acf (diff) | |
download | gitlab-ce-64331de36040549531b543e862021263844af9bc.tar.gz |
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')
-rw-r--r-- | doc/api/repository_files.md | 2 |
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: |