doc: Correct example responses in repository_files.md

This commit is contained in:
kasbah 2018-01-27 22:02:49 +00:00
parent dc325c672e
commit 9132c4d5f7
1 changed files with 2 additions and 11 deletions

View File

@ -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