diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2017-06-27 18:18:08 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2017-07-04 16:29:36 +0200 |
commit | 1308b6801babb7d64bec4ffe2e619ea0e4c5cdef (patch) | |
tree | 022b21a68ca9035adcd55e9b8a643a3797aed8e5 /sonar-ws | |
parent | 72f20e1066197e64b7e5d348d9f1bc2466073f2e (diff) | |
download | sonarqube-1308b6801babb7d64bec4ffe2e619ea0e4c5cdef.tar.gz sonarqube-1308b6801babb7d64bec4ffe2e619ea0e4c5cdef.zip |
SONAR-9482 Create api/qualityprofile/show WS returning stub
Diffstat (limited to 'sonar-ws')
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofile/QualityProfileWsParameters.java | 1 | ||||
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-qualityprofiles.proto | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofile/QualityProfileWsParameters.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofile/QualityProfileWsParameters.java index 5ce75182da8..f52962bee5c 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofile/QualityProfileWsParameters.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/qualityprofile/QualityProfileWsParameters.java @@ -63,6 +63,7 @@ public class QualityProfileWsParameters { public static final String PARAM_TARGET_SEVERITY = "targetSeverity"; public static final String PARAM_TO = "to"; public static final String PARAM_TO_NAME = "toName"; + public static final String PARAM_COMPARE_TO_SONAR_WAY = "compareToSonarWay"; private QualityProfileWsParameters() { // Only static stuff diff --git a/sonar-ws/src/main/protobuf/ws-qualityprofiles.proto b/sonar-ws/src/main/protobuf/ws-qualityprofiles.proto index a6f2df7b39a..0dab9b3c06f 100644 --- a/sonar-ws/src/main/protobuf/ws-qualityprofiles.proto +++ b/sonar-ws/src/main/protobuf/ws-qualityprofiles.proto @@ -99,3 +99,34 @@ message CopyWsResponse { optional bool isInherited = 6; optional string parentKey = 7; } + +// WS api/qualityprofiles/show +message ShowWsResponse { + optional QualityProfile profile = 1; + optional CompareToSonarWay compareToSonarWay = 2; + + message QualityProfile { + optional string key = 1; + optional string name = 2; + optional string language = 3; + optional string languageName = 4; + optional bool isInherited = 5; + optional string parentKey = 6; + optional string parentName = 7; + optional bool isDefault = 8; + optional int64 activeRuleCount = 9; + optional int64 activeDeprecatedRuleCount = 12; + optional int64 projectCount = 10; + optional string ruleUpdatedAt = 11; + optional string lastUsed = 13; + optional string userUpdatedAt = 14; + optional string organization = 15; + optional bool isBuiltIn = 16; + } + + message CompareToSonarWay { + optional string profile = 1; + optional string profileName = 2; + optional int64 missingRuleCount = 3; + } +} |