Skip to content

Commit b1ce952

Browse files
committed
Added example for ContainerRegistryApi (#368).
1 parent 8ebb75c commit b1ce952

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ To utilize GitLab4J™ API in your Java project, simply add the following de
1212
```java
1313
dependencies {
1414
...
15-
compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.11.5'
15+
compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.11.6'
1616
}
1717
```
1818

@@ -23,7 +23,7 @@ dependencies {
2323
<dependency>
2424
<groupId>org.gitlab4j</groupId>
2525
<artifactId>gitlab4j-api</artifactId>
26-
<version>4.11.5</version>
26+
<version>4.11.6</version>
2727
</dependency>
2828
```
2929

@@ -224,6 +224,7 @@ The following is a list of the available sub APIs along with a sample use of eac
224224
&nbsp;&nbsp;[AwardEmojiApi](#awardemojiapi)<br/>
225225
&nbsp;&nbsp;[BoardsApi](#boardsapi)<br/>
226226
&nbsp;&nbsp;[CommitsApi](#commitsapi)<br/>
227+
&nbsp;&nbsp;[ContainerRegistryApi](#containerregistryapi)<br/>
227228
&nbsp;&nbsp;[DeployKeysApi](#deploykeysapi)<br/>
228229
&nbsp;&nbsp;[DiscussionsApi](#discussionsapi)<br/>
229230
&nbsp;&nbsp;[EpicsApi](#epicsapi)<br/>
@@ -289,6 +290,12 @@ Date until = new Date(); // now
289290
List<Commit> commits = gitLabApi.getCommitsApi().getCommits(1234, "new-feature", since, until);
290291
```
291292

293+
#### ContainerRegistryApi
294+
```java
295+
// Get a list of the registry repositories belonging to the specified project
296+
List<RegistryRepository> registryRepos = gitLabApi.ContainerRegistryApi().getRepositories(projectId);
297+
```
298+
292299
#### DeployKeysApi
293300
```java
294301
// Get a list of DeployKeys for the authenticated user

0 commit comments

Comments
 (0)