aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/projectdump/ProjectDumpService.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/projectdump/ProjectDumpService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/projectdump/ProjectDumpService.java
index b01e84a831c..cc6535a2a2b 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/projectdump/ProjectDumpService.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/projectdump/ProjectDumpService.java
@@ -66,4 +66,19 @@ public class ProjectDumpService extends BaseService {
.setMediaType(MediaTypes.JSON)
).content();
}
+
+ /**
+ *
+ * This is part of the internal API.
+ * This is a POST request.
+ * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/project_dump/import">Further information about this action online (including a response example)</a>
+ * @since 1.0
+ */
+ public String Import(ImportRequest request) {
+ return call(
+ new PostRequest(path("import"))
+ .setParam("key", request.getKey())
+ .setMediaType(MediaTypes.JSON)
+ ).content();
+ }
}