aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src/main/protobuf/ws-hotspots.proto
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2019-12-03 16:50:08 +0100
committerSonarTech <sonartech@sonarsource.com>2020-01-13 20:46:26 +0100
commit751fd7ffdb00dcf77e6fa982e6d3428dd7a6c564 (patch)
tree160bc506c3cf6b93c6ed6fb173b40010a94b7f75 /sonar-ws/src/main/protobuf/ws-hotspots.proto
parent71eed309ddc5258a3d0bf548f20445cecf9aa148 (diff)
downloadsonarqube-751fd7ffdb00dcf77e6fa982e6d3428dd7a6c564.tar.gz
sonarqube-751fd7ffdb00dcf77e6fa982e6d3428dd7a6c564.zip
SONAR-12718 add WS api/hotspots/show
Diffstat (limited to 'sonar-ws/src/main/protobuf/ws-hotspots.proto')
-rw-r--r--sonar-ws/src/main/protobuf/ws-hotspots.proto55
1 files changed, 42 insertions, 13 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-hotspots.proto b/sonar-ws/src/main/protobuf/ws-hotspots.proto
index e6650472d04..cef59629a8e 100644
--- a/sonar-ws/src/main/protobuf/ws-hotspots.proto
+++ b/sonar-ws/src/main/protobuf/ws-hotspots.proto
@@ -31,23 +31,42 @@ message SearchWsResponse {
optional sonarqube.ws.commons.Paging paging = 1;
repeated Hotspot hotspots = 2;
repeated Component components = 3;
+
+ message Hotspot {
+ optional string key = 1;
+ optional string component = 2;
+ optional string project = 3;
+ optional string securityCategory = 4;
+ optional string vulnerabilityProbability = 5;
+ optional string status = 6;
+ // FIXME resolution field will be added later
+ // optional string resolution = 7;
+ optional int32 line = 8;
+ optional string message = 9;
+ optional string assignee = 10;
+ optional string author = 11;
+ optional string creationDate = 12;
+ optional string updateDate = 13;
+ }
}
-message Hotspot {
+// Response of GET api/hotspots/show
+message ShowWsResponse {
optional string key = 1;
- optional string component = 2;
- optional string project = 3;
- optional string securityCategory = 4;
- optional string vulnerabilityProbability = 5;
- optional string status = 6;
+ optional Component component = 2;
+ optional Component project = 3;
+ optional Rule rule = 4;
+ optional string status = 5;
// FIXME resolution field will be added later
-// optional string resolution = 7;
- optional int32 line = 8;
- optional string message = 9;
- optional string assignee = 10;
- optional string author = 11;
- optional string creationDate = 12;
- optional string updateDate = 13;
+// optional string resolution = 6;
+ optional int32 line = 7;
+ optional string message = 8;
+ optional string assignee = 9;
+ // SCM login of the committer who introduced the issue
+ optional string author = 10;
+ optional string creationDate = 11;
+ optional string updateDate = 12;
+ optional sonarqube.ws.commons.TextRange textRange = 13;
}
message Component {
@@ -58,3 +77,13 @@ message Component {
optional string longName = 5;
optional string path = 6;
}
+
+message Rule {
+ optional string key = 1;
+ optional string name = 2;
+ optional string securityCategory = 3;
+ optional string vulnerabilityProbability = 4;
+ optional string riskDescription = 5;
+ optional string vulnerabilityDescription = 6;
+ optional string fixRecommendations = 7;
+}