Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
9132c4d5
Commit
9132c4d5
authored
Jan 27, 2018
by
kasbah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: Correct example responses in repository_files.md
parent
dc325c67
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
doc/api/repository_files.md
doc/api/repository_files.md
+2
-11
No files found.
doc/api/repository_files.md
View file @
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment