aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authoralain <108417558+alain-kermis-sonarsource@users.noreply.github.com>2022-10-27 14:08:20 +0200
committersonartech <sonartech@sonarsource.com>2022-10-27 20:03:02 +0000
commit83bd18d97d9d8e0b858875b253bc52efff70e810 (patch)
tree6984dfa8964d739eafa615aa9434cb933a899f3e /sonar-ws
parent0806043b590e1d0f3bf08c4d88627dc9bb6cf913 (diff)
downloadsonarqube-83bd18d97d9d8e0b858875b253bc52efff70e810.tar.gz
sonarqube-83bd18d97d9d8e0b858875b253bc52efff70e810.zip
SONAR-17497 Add web service to reindex issues
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/issues/IssuesService.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/IssuesService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/IssuesService.java
index bd8295956c5..a607c6c8c18 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/IssuesService.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/issues/IssuesService.java
@@ -195,6 +195,19 @@ public class IssuesService extends BaseService {
/**
*
* This is part of the internal API.
+ * This is a POST request.
+ * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/reindex">Further information about this action online (including a response example)</a>
+ * @since 9.8
+ */
+ public void reindex() {
+ call(
+ new PostRequest(path("reindex"))
+ .setMediaType(MediaTypes.JSON)).content();
+ }
+
+ /**
+ *
+ * This is part of the internal API.
* This is a GET request.
* @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/issues/search">Further information about this action online (including a response example)</a>
* @since 3.6