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
cdf53b78
Unverified
Commit
cdf53b78
authored
Nov 30, 2017
by
Greg Messner
Committed by
GitHub
Nov 30, 2017
Browse files
Updated for 4.7.0
parent
cf7164e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
cdf53b78
...
...
@@ -11,7 +11,7 @@ To utilize the GitLab API for Java in your project, simply add the following dep
```
java
dependencies
{
...
compile
group:
'
org
.
gitlab4j
'
,
name:
'
gitlab4j
-
api
'
,
version:
'
4.
6
.
9
'
compile
group:
'
org
.
gitlab4j
'
,
name:
'
gitlab4j
-
api
'
,
version:
'
4.
7
.
0
'
}
```
...
...
@@ -20,7 +20,7 @@ dependencies {
<dependency>
<groupId>
org.gitlab4j
</groupId>
<artifactId>
gitlab4j-api
</artifactId>
<version>
4.
6.9
</version>
<version>
4.
7.0
</version>
</dependency>
```
...
...
@@ -101,7 +101,9 @@ Available Sub APIs
[
GroupApi
](
#groupapi
)
<br/>
[
IssuesApi
](
#issuesapi
)
<br/>
[
JobApi
](
#jobapi
)
<br/>
[
LabelsApi
](
#labelsapi
)
<br/>
[
MergeRequestApi
](
#mergerequestapi
)
<br/>
[
MilestonesApi
](
#milestonesapi
)
<br/>
[
NamespaceApi
](
#namespaceapi
)
<br/>
[
NotesApi
](
#notesapi
)
<br/>
[
PipelineApi
](
#pipelineapi
)
<br/>
...
...
@@ -157,11 +159,23 @@ List<Issue> issues = gitLabApi.getIssuesApi().getIssues(1234);
List
<
Job
>
jobs
=
gitLabApi
.
getJobApi
().
getJobs
(
1234
);
```
### LabelsApi
```
java
// Get a list of labels for the specified project ID
List
<
Label
>
labels
=
gitLabApi
.
getLabelsApi
().
getLabels
(
1234
);
```
### MergeRequestApi
```
java
// Get a list of the merge requests for the specified project
List
<
MergeRequest
>
mergeRequests
=
gitLabApi
.
getMergeRequestApi
().
getMergeRequests
(
1234
);
```
### MilestonesApi
```
java
// Get a list of the milestones for the specified project
List
<
Milestone
>
milestones
=
gitLabApi
.
getMilestonesApi
().
getMilestones
(
1234
);
```
### NamespaceApi
```
java
...
...
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