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
b1ce952b
Commit
b1ce952b
authored
Jun 06, 2019
by
Greg Messner
Browse files
Added example for ContainerRegistryApi (#368).
parent
8ebb75c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
b1ce952b
...
...
@@ -12,7 +12,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.11
.
5
'
compile
group:
'
org
.
gitlab4j
'
,
name:
'
gitlab4j
-
api
'
,
version:
'
4.11
.
6
'
}
```
...
...
@@ -23,7 +23,7 @@ dependencies {
<dependency>
<groupId>
org.gitlab4j
</groupId>
<artifactId>
gitlab4j-api
</artifactId>
<version>
4.11.
5
</version>
<version>
4.11.
6
</version>
</dependency>
```
...
...
@@ -224,6 +224,7 @@ The following is a list of the available sub APIs along with a sample use of eac
[AwardEmojiApi](#awardemojiapi)<br/>
[BoardsApi](#boardsapi)<br/>
[CommitsApi](#commitsapi)<br/>
[ContainerRegistryApi](#containerregistryapi)<br/>
[DeployKeysApi](#deploykeysapi)<br/>
[DiscussionsApi](#discussionsapi)<br/>
[EpicsApi](#epicsapi)<br/>
...
...
@@ -289,6 +290,12 @@ Date until = new Date(); // now
List
<Commit>
commits = gitLabApi.getCommitsApi().getCommits(1234, "new-feature", since, until);
```
#### ContainerRegistryApi
```
java
// Get a list of the registry repositories belonging to the specified project
List
<RegistryRepository>
registryRepos = gitLabApi.ContainerRegistryApi().getRepositories(projectId);
```
#### DeployKeysApi
```
java
// Get a list of DeployKeys for the authenticated user
...
...
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