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
e06ef8e6
Commit
e06ef8e6
authored
May 16, 2015
by
Greg Messner
Browse files
Added RepositoryFileApi example.
parent
9fe1af54
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
e06ef8e6
...
...
@@ -22,6 +22,7 @@ GroupApi
MergeRequestApi
ProjectApi
RepositoryApi
RepositoryFileApi
SessionApi
UserApi
```
...
...
@@ -56,6 +57,12 @@ RepositoryApi:
List
<
Branch
>
branches
=
gitLabApi
.
getRepositoryApi
().
getBranches
();
```
RepositoryFileApi:
```
java
// Get info (name, size, ...) and the content ifrom a file in repository
RepositoryFile
file
=
gitLabApi
.
getRepositoryFileApi
().
getFile
(
"file-path"
,
1234
,
"ref"
);
```
SessionApi:
```
java
// Log in to the GitLab server and get the session info
...
...
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