aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorJacek <jacek.poreda@sonarsource.com>2023-07-10 14:52:20 +0200
committersonartech <sonartech@sonarsource.com>2023-07-19 20:03:05 +0000
commit7c322c39eb267da94b1875aebd948e7409c6a9a2 (patch)
tree47ba7fbc0b012104704ced42dc4c76f44943c049 /sonar-ws
parent1db20751d8d12bd3e3d93ce85c91a171ff3bca2a (diff)
downloadsonarqube-7c322c39eb267da94b1875aebd948e7409c6a9a2.tar.gz
sonarqube-7c322c39eb267da94b1875aebd948e7409c6a9a2.zip
SONAR-19728 add `api/hotspots/list` endpoint
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/protobuf/ws-hotspots.proto6
-rw-r--r--sonar-ws/src/main/protobuf/ws-issues.proto1
2 files changed, 7 insertions, 0 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-hotspots.proto b/sonar-ws/src/main/protobuf/ws-hotspots.proto
index 58fcfc367f8..ef4721c44dd 100644
--- a/sonar-ws/src/main/protobuf/ws-hotspots.proto
+++ b/sonar-ws/src/main/protobuf/ws-hotspots.proto
@@ -53,6 +53,12 @@ message SearchWsResponse {
}
}
+// Response of GET api/hotspots/list
+message ListWsResponse {
+ optional sonarqube.ws.commons.Paging paging = 1;
+ repeated SearchWsResponse.Hotspot hotspots = 2;
+}
+
// Response of GET api/hotspots/show
message ShowWsResponse {
optional string key = 1;
diff --git a/sonar-ws/src/main/protobuf/ws-issues.proto b/sonar-ws/src/main/protobuf/ws-issues.proto
index bb1e56e870c..d545fe7e75d 100644
--- a/sonar-ws/src/main/protobuf/ws-issues.proto
+++ b/sonar-ws/src/main/protobuf/ws-issues.proto
@@ -301,4 +301,5 @@ message Flow {
message ListWsResponse {
optional sonarqube.ws.commons.Paging paging = 1;
repeated Issue issues = 2;
+ repeated Component components = 3;
}