aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorDaniel Schwarz <daniel.schwarz@sonarsource.com>2017-04-10 14:37:08 +0200
committerDaniel Schwarz <bartfastiel@users.noreply.github.com>2017-04-20 09:48:52 +0200
commit990075060041806dec8556e98a2ab0c2e8cf620e (patch)
tree46304c4c4b1015ec96e66b0a08da23d0c2777af7 /sonar-ws
parentd636a8b55035581ba8a3dc1642db00b418e70334 (diff)
downloadsonarqube-990075060041806dec8556e98a2ab0c2e8cf620e.tar.gz
sonarqube-990075060041806dec8556e98a2ab0c2e8cf620e.zip
SONAR-9077 add highlights to api contract of api/components/suggestions
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/protobuf/ws-components.proto11
1 files changed, 9 insertions, 2 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-components.proto b/sonar-ws/src/main/protobuf/ws-components.proto
index cd480edc5a0..638d7193592 100644
--- a/sonar-ws/src/main/protobuf/ws-components.proto
+++ b/sonar-ws/src/main/protobuf/ws-components.proto
@@ -55,10 +55,18 @@ message SuggestionsWsResponse {
message Category {
optional string category = 1;
- repeated Component items = 2;
+ repeated Suggestion suggestions = 2;
optional int64 more = 3;
}
+ message Suggestion {
+ optional string key = 1;
+ optional string name = 2;
+ optional string match = 3;
+ optional string organization = 4;
+ optional string project = 5;
+ }
+
message Organization {
optional string key = 1;
optional string name = 2;
@@ -83,7 +91,6 @@ message Component {
optional string key = 2;
optional string refId = 3;
optional string refKey = 4;
- optional string project = 15;
optional string projectId = 5;
optional string name = 6;
optional string description = 7;