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
039d3277
Commit
039d3277
authored
Nov 09, 2019
by
Greg Messner
Browse files
Added ENvironmentsApi section and bumper revisions for next release.
parent
87e406e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
039d3277
...
...
@@ -50,7 +50,7 @@ To utilize GitLab4J™ API in your Java project, simply add the following de
```
java
dependencies
{
...
compile
group:
'
org
.
gitlab4j
'
,
name:
'
gitlab4j
-
api
'
,
version:
'
4.12
.
1
7
'
compile
group:
'
org
.
gitlab4j
'
,
name:
'
gitlab4j
-
api
'
,
version:
'
4.12
.
1
8
'
}
```
...
...
@@ -61,7 +61,7 @@ dependencies {
<dependency>
<groupId>
org.gitlab4j
</groupId>
<artifactId>
gitlab4j-api
</artifactId>
<version>
4.12.1
7
</version>
<version>
4.12.1
8
</version>
</dependency>
```
...
...
@@ -260,6 +260,7 @@ The following is a list of the available sub APIs along with a sample use of eac
[ContainerRegistryApi](#containerregistryapi)<br/>
[DeployKeysApi](#deploykeysapi)<br/>
[DiscussionsApi](#discussionsapi)<br/>
[EnvironmentsApi](#environmentsapi)<br/>
[EpicsApi](#epicsapi)<br/>
[EventsApi](#eventsapi)<br/>
[GroupApi](#groupapi)<br/>
...
...
@@ -341,10 +342,17 @@ List<RegistryRepository> registryRepos = gitLabApi.ContainerRegistryApi().getRep
List
<DeployKey>
deployKeys = gitLabApi.getDeployKeysApi().getDeployKeys();
```
A
#### DiscussionsApi
```
java
// Get a list of Discussions for the specified merge request
List
<DeployKey>
deployKeys = gitLabApi.getDiscussionsApi().getMergeRequestDiscussions(projectId, mergeRequestIid);
List
<Discussion>
discussions = gitLabApi.getDiscussionsApi().getMergeRequestDiscussions(projectId, mergeRequestIid);
```
#### EnvironmentsApi
```
java
// Get a list of Environments for the specified project
List
<Environment>
environments = gitLabApi.getEnvironmentsApi().getEnvironments(projectId);
```
#### EpicsApi
...
...
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