aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorLukasz Jarocki <lukasz.jarocki@sonarsource.com>2021-11-03 11:53:31 +0100
committersonartech <sonartech@sonarsource.com>2021-11-04 20:03:25 +0000
commit81ce7e4b29a83c0562e8278b407d17c511078c49 (patch)
tree61e80d94fb33278d834280ceed6e6ca50494340f /sonar-ws
parentd78c0d2922ced2e85823965cc220a0d09481f945 (diff)
downloadsonarqube-81ce7e4b29a83c0562e8278b407d17c511078c49.tar.gz
sonarqube-81ce7e4b29a83c0562e8278b407d17c511078c49.zip
SONAR-15570 Added integration test for export and import between editions
Diffstat (limited to 'sonar-ws')
-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();
+ }
}