aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorDaniel Schwarz <daniel.schwarz@sonarsource.com>2017-04-12 14:12:36 +0200
committerDaniel Schwarz <bartfastiel@users.noreply.github.com>2017-04-14 11:41:59 +0200
commit90d53203f9b4b858b4aad7ba61d36624d0f08c5b (patch)
treea72d72dd0dacf35bda3674bb434ee44a7c378424 /sonar-ws
parent9fc79df2c833549fdad62e3d26b9c0204e6c568f (diff)
downloadsonarqube-90d53203f9b4b858b4aad7ba61d36624d0f08c5b.tar.gz
sonarqube-90d53203f9b4b858b4aad7ba61d36624d0f08c5b.zip
SONAR-8924 refactored api/qualityprofiles/inheritance to use protobuf
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/protobuf/ws-qualityprofiles.proto15
1 files changed, 15 insertions, 0 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-qualityprofiles.proto b/sonar-ws/src/main/protobuf/ws-qualityprofiles.proto
index fa8c312be2b..43aec89576f 100644
--- a/sonar-ws/src/main/protobuf/ws-qualityprofiles.proto
+++ b/sonar-ws/src/main/protobuf/ws-qualityprofiles.proto
@@ -71,3 +71,18 @@ message CreateWsResponse {
}
}
}
+
+// WS api/qualityprofiles/inheritance
+message InheritanceWsResponse {
+ optional QualityProfile profile = 1;
+ repeated QualityProfile ancestors = 2;
+ repeated QualityProfile children = 3;
+
+ message QualityProfile {
+ optional string key = 1;
+ optional string name = 2;
+ optional string parent = 3;
+ optional int64 activeRuleCount = 4;
+ optional int64 overridingRuleCount = 5;
+ }
+}