diff options
author | Lukasz Jarocki <lukasz.jarocki@sonarsource.com> | 2021-11-03 11:53:31 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-11-04 20:03:25 +0000 |
commit | 81ce7e4b29a83c0562e8278b407d17c511078c49 (patch) | |
tree | 61e80d94fb33278d834280ceed6e6ca50494340f /sonar-ws | |
parent | d78c0d2922ced2e85823965cc220a0d09481f945 (diff) | |
download | sonarqube-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.java | 15 |
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(); + } } |