Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
3e42bef2
Commit
3e42bef2
authored
May 14, 2015
by
六幻
Browse files
add more comments.
parent
1d8b0a75
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/messners/gitlab/api/RepositoryFileApi.java
View file @
3e42bef2
...
...
@@ -24,9 +24,9 @@ public class RepositoryFileApi extends AbstractApi {
*
* GET /projects/:id/repository/files
*
* @param file
P
ath
* @param file
_p
ath
(required) - Full path to new file. Ex. lib/class.rb
* @param projectId
* @param ref
* @param ref
(required) - The name of branch, tag or commit
* @return
* @throws GitLabApiException
*/
...
...
@@ -42,6 +42,12 @@ public class RepositoryFileApi extends AbstractApi {
* Create new file in repository
*
* POST /projects/:id/repository/files
*
* file_path (required) - Full path to new file. Ex. lib/class.rb
* branch_name (required) - The name of branch
* encoding (optional) - 'text' or 'base64'. Text is default.
* content (required) - File content
* commit_message (required) - Commit message
*
* @param file
* @param projectId
...
...
@@ -61,6 +67,12 @@ public class RepositoryFileApi extends AbstractApi {
*
* PUT /projects/:id/repository/files
*
* file_path (required) - Full path to new file. Ex. lib/class.rb
* branch_name (required) - The name of branch
* encoding (optional) - 'text' or 'base64'. Text is default.
* content (required) - File content
* commit_message (required) - Commit message
*
* @param file
* @param projectId
* @param branchName
...
...
@@ -79,6 +91,10 @@ public class RepositoryFileApi extends AbstractApi {
*
* DELETE /projects/:id/repository/files
*
* file_path (required) - Full path to file. Ex. lib/class.rb
* branch_name (required) - The name of branch
* commit_message (required) - Commit message
*
* @param filePath
* @param projectId
* @param branchName
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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