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
iv
gitlab-ce
Commits
79afb001
Commit
79afb001
authored
Nov 10, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix type in API doc
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
c9e31875
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
doc/api/repositories.md
doc/api/repositories.md
+1
-1
lib/api/files.rb
lib/api/files.rb
+1
-1
No files found.
doc/api/repositories.md
View file @
79afb001
...
@@ -380,7 +380,7 @@ POST /projects/:id/repository/files
...
@@ -380,7 +380,7 @@ POST /projects/:id/repository/files
Parameters:
Parameters:
+
`file_name`
(required) - The name of new file. Ex. class.rb
+
`file_name`
(required) - The name of new file. Ex. class.rb
+
`file_path`
(optiona) - The path to new file. Ex. lib/
+
`file_path`
(optiona
l
) - The path to new file. Ex. lib/
+
`branch_name`
(required) - The name of branch
+
`branch_name`
(required) - The name of branch
+
`content`
(required) - File content
+
`content`
(required) - File content
+
`commit_message`
(required) - Commit message
+
`commit_message`
(required) - Commit message
lib/api/files.rb
View file @
79afb001
...
@@ -9,7 +9,7 @@ module API
...
@@ -9,7 +9,7 @@ module API
#
#
# Parameters:
# Parameters:
# file_name (required) - The name of new file. Ex. class.rb
# file_name (required) - The name of new file. Ex. class.rb
# file_path (optiona) - The path to new file. Ex. lib/
# file_path (optiona
l
) - The path to new file. Ex. lib/
# branch_name (required) - The name of branch
# branch_name (required) - The name of branch
# content (required) - File content
# content (required) - File content
# commit_message (required) - Commit message
# commit_message (required) - Commit message
...
...
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