Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
10 years ago
by
六幻
Browse files
Options
Download
Email Patches
Plain Diff
add more comments.
parent
1d8b0a75
main
5.0.x
5.0.x.jdk17
6.x
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/com/messners/gitlab/api/RepositoryFileApi.java
+18
-2
src/main/java/com/messners/gitlab/api/RepositoryFileApi.java
with
18 additions
and
2 deletions
+18
-2
src/main/java/com/messners/gitlab/api/RepositoryFileApi.java
+
18
-
2
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
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets