]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-15570 Added integration test for export and import between editions
authorLukasz Jarocki <lukasz.jarocki@sonarsource.com>
Wed, 3 Nov 2021 10:53:31 +0000 (11:53 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 4 Nov 2021 20:03:25 +0000 (20:03 +0000)
sonar-ws/src/main/java/org/sonarqube/ws/client/projectdump/ProjectDumpService.java

index b01e84a831c41bfc5458c370a27b717588782854..cc6535a2a2bdd6316b1b9621f9041dc117b2730c 100644 (file)
@@ -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();
+  }
 }