Commit bea8e490 authored by Greg Messner's avatar Greg Messner
Browse files

Added example for the import/export API (#377).

parent dd6f5eb7
...@@ -12,7 +12,7 @@ To utilize GitLab4J™ API in your Java project, simply add the following de ...@@ -12,7 +12,7 @@ To utilize GitLab4J™ API in your Java project, simply add the following de
```java ```java
dependencies { dependencies {
... ...
compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.11.6' compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.11.7'
} }
``` ```
...@@ -23,7 +23,7 @@ dependencies { ...@@ -23,7 +23,7 @@ dependencies {
<dependency> <dependency>
<groupId>org.gitlab4j</groupId> <groupId>org.gitlab4j</groupId>
<artifactId>gitlab4j-api</artifactId> <artifactId>gitlab4j-api</artifactId>
<version>4.11.6</version> <version>4.11.7</version>
</dependency> </dependency>
``` ```
...@@ -231,6 +231,7 @@ The following is a list of the available sub APIs along with a sample use of eac ...@@ -231,6 +231,7 @@ The following is a list of the available sub APIs along with a sample use of eac
&nbsp;&nbsp;[EventsApi](#eventsapi)<br/> &nbsp;&nbsp;[EventsApi](#eventsapi)<br/>
&nbsp;&nbsp;[GroupApi](#groupapi)<br/> &nbsp;&nbsp;[GroupApi](#groupapi)<br/>
&nbsp;&nbsp;[HealthCheckApi](#healthcheckapi)<br/> &nbsp;&nbsp;[HealthCheckApi](#healthcheckapi)<br/>
&nbsp;&nbsp;[ImportExportApi](#importexportapi)<br/>
&nbsp;&nbsp;[IssuesApi](#issuesapi)<br/> &nbsp;&nbsp;[IssuesApi](#issuesapi)<br/>
&nbsp;&nbsp;[JobApi](#jobapi)<br/> &nbsp;&nbsp;[JobApi](#jobapi)<br/>
&nbsp;&nbsp;[LabelsApi](#labelsapi)<br/> &nbsp;&nbsp;[LabelsApi](#labelsapi)<br/>
...@@ -335,6 +336,15 @@ List<Group> groups = gitLabApi.getGroupApi().getGroups(); ...@@ -335,6 +336,15 @@ List<Group> groups = gitLabApi.getGroupApi().getGroups();
HealthCheckInfo healthCheck = gitLabApi.getHealthCheckApi().getLiveness(); HealthCheckInfo healthCheck = gitLabApi.getHealthCheckApi().getLiveness();
``` ```
#### ImportExportApi
```java
// Schedule a project export for the specified project ID
gitLabApi.getImportExportApi().scheduleExport(projectId);
// Get the project export status for the specified project ID
ExportStatus exportStatus = gitLabApi.getImportExportApi().getExportStatus(projectId);
```
#### IssuesApi #### IssuesApi
```java ```java
// Get a list of issues for the specified project ID // Get a list of issues for the specified project ID
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment