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
bea8e490
Commit
bea8e490
authored
Jun 08, 2019
by
Greg Messner
Browse files
Added example for the import/export API (#377).
parent
dd6f5eb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
bea8e490
...
...
@@ -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
.
6
'
compile
group:
'
org
.
gitlab4j
'
,
name:
'
gitlab4j
-
api
'
,
version:
'
4.11
.
7
'
}
```
...
...
@@ -23,7 +23,7 @@ dependencies {
<dependency>
<groupId>
org.gitlab4j
</groupId>
<artifactId>
gitlab4j-api
</artifactId>
<version>
4.11.
6
</version>
<version>
4.11.
7
</version>
</dependency>
```
...
...
@@ -231,6 +231,7 @@ The following is a list of the available sub APIs along with a sample use of eac
[EventsApi](#eventsapi)<br/>
[GroupApi](#groupapi)<br/>
[HealthCheckApi](#healthcheckapi)<br/>
[ImportExportApi](#importexportapi)<br/>
[IssuesApi](#issuesapi)<br/>
[JobApi](#jobapi)<br/>
[LabelsApi](#labelsapi)<br/>
...
...
@@ -335,6 +336,15 @@ List<Group> groups = gitLabApi.getGroupApi().getGroups();
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
```
java
// Get a list of issues for the specified project ID
...
...
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