summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-01-30 11:36:19 +0000
committerRémy Coutable <remy@rymai.me>2018-01-30 11:36:19 +0000
commita03ea19332736c36ecb92c2ccc0ca3364ae77c2e (patch)
tree4203edd05ff414c6a0d8231ea3019dbad0c85116 /doc
parent2d48109469c404b66d4e547c37023a330b81b38a (diff)
parent9132c4d5f7309c828bf0e86f17d5b42030a31d0d (diff)
downloadgitlab-ce-a03ea19332736c36ecb92c2ccc0ca3364ae77c2e.tar.gz
Merge branch 'patch-28' into 'master'
doc: Correct example responses in repository_files.md See merge request gitlab-org/gitlab-ce!16754
Diffstat (limited to 'doc')
-rw-r--r--doc/api/repository_files.md13
1 files changed, 2 insertions, 11 deletions
diff --git a/doc/api/repository_files.md b/doc/api/repository_files.md
index a1a0b1b756c..c29dc22e12d 100644
--- a/doc/api/repository_files.md
+++ b/doc/api/repository_files.md
@@ -68,7 +68,7 @@ Example response:
```json
{
- "file_name": "app/project.rb",
+ "file_path": "app/project.rb",
"branch": "master"
}
```
@@ -98,7 +98,7 @@ Example response:
```json
{
- "file_name": "app/project.rb",
+ "file_path": "app/project.rb",
"branch": "master"
}
```
@@ -134,15 +134,6 @@ DELETE /projects/:id/repository/files/:file_path
curl --request DELETE --header 'PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK' 'https://gitlab.example.com/api/v4/projects/13083/repository/files/app%2Fproject%2Erb?branch=master&author_email=author%40example.com&author_name=Firstname%20Lastname&commit_message=delete%20file'
```
-Example response:
-
-```json
-{
- "file_name": "app/project.rb",
- "branch": "master"
-}
-```
-
Parameters:
- `file_path` (required) - Url encoded full path to new file. Ex. lib%2Fclass%2Erb