Commit a03ea193 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'patch-28' into 'master'

doc: Correct example responses in repository_files.md

See merge request gitlab-org/gitlab-ce!16754
parents 2d481094 9132c4d5
...@@ -68,7 +68,7 @@ Example response: ...@@ -68,7 +68,7 @@ Example response:
```json ```json
{ {
"file_name": "app/project.rb", "file_path": "app/project.rb",
"branch": "master" "branch": "master"
} }
``` ```
...@@ -98,7 +98,7 @@ Example response: ...@@ -98,7 +98,7 @@ Example response:
```json ```json
{ {
"file_name": "app/project.rb", "file_path": "app/project.rb",
"branch": "master" "branch": "master"
} }
``` ```
...@@ -134,15 +134,6 @@ DELETE /projects/:id/repository/files/:file_path ...@@ -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' 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: Parameters:
- `file_path` (required) - Url encoded full path to new file. Ex. lib%2Fclass%2Erb - `file_path` (required) - Url encoded full path to new file. Ex. lib%2Fclass%2Erb
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment