Skip to content

Commit bea8e49

Browse files
committed
Added example for the import/export API (#377).
1 parent dd6f5eb commit bea8e49

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

Lines changed: 12 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.6'
15+
compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.11.7'
1616
}
1717
```
1818

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

@@ -231,6 +231,7 @@ The following is a list of the available sub APIs along with a sample use of eac
231231
&nbsp;&nbsp;[EventsApi](#eventsapi)<br/>
232232
&nbsp;&nbsp;[GroupApi](#groupapi)<br/>
233233
&nbsp;&nbsp;[HealthCheckApi](#healthcheckapi)<br/>
234+
&nbsp;&nbsp;[ImportExportApi](#importexportapi)<br/>
234235
&nbsp;&nbsp;[IssuesApi](#issuesapi)<br/>
235236
&nbsp;&nbsp;[JobApi](#jobapi)<br/>
236237
&nbsp;&nbsp;[LabelsApi](#labelsapi)<br/>
@@ -335,6 +336,15 @@ List<Group> groups = gitLabApi.getGroupApi().getGroups();
335336
HealthCheckInfo healthCheck = gitLabApi.getHealthCheckApi().getLiveness();
336337
```
337338

339+
#### ImportExportApi
340+
```java
341+
// Schedule a project export for the specified project ID
342+
gitLabApi.getImportExportApi().scheduleExport(projectId);
343+
344+
// Get the project export status for the specified project ID
345+
ExportStatus exportStatus = gitLabApi.getImportExportApi().getExportStatus(projectId);
346+
```
347+
338348
#### IssuesApi
339349
```java
340350
// Get a list of issues for the specified project ID

0 commit comments

Comments
 (0)