From 81ce7e4b29a83c0562e8278b407d17c511078c49 Mon Sep 17 00:00:00 2001 From: Lukasz Jarocki Date: Wed, 3 Nov 2021 11:53:31 +0100 Subject: [PATCH] SONAR-15570 Added integration test for export and import between editions --- .../ws/client/projectdump/ProjectDumpService.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 Further information about this action online (including a response example) + * @since 1.0 + */ + public String Import(ImportRequest request) { + return call( + new PostRequest(path("import")) + .setParam("key", request.getKey()) + .setMediaType(MediaTypes.JSON) + ).content(); + } } -- 2.39.5