Commit e06ef8e6 authored by Greg Messner's avatar Greg Messner
Browse files

Added RepositoryFileApi example.

parent 9fe1af54
...@@ -22,6 +22,7 @@ GroupApi ...@@ -22,6 +22,7 @@ GroupApi
MergeRequestApi MergeRequestApi
ProjectApi ProjectApi
RepositoryApi RepositoryApi
RepositoryFileApi
SessionApi SessionApi
UserApi UserApi
``` ```
...@@ -56,6 +57,12 @@ RepositoryApi: ...@@ -56,6 +57,12 @@ RepositoryApi:
List<Branch> branches = gitLabApi.getRepositoryApi().getBranches(); 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: SessionApi:
```java ```java
// Log in to the GitLab server and get the session info // Log in to the GitLab server and get the session info
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment