]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-16423 - License Usage endpoint should be standard API
authorBelen Pruvost <belen.pruvost@sonarsource.com>
Thu, 2 Jun 2022 17:43:28 +0000 (19:43 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 3 Jun 2022 20:03:04 +0000 (20:03 +0000)
sonar-ws/src/main/protobuf/ws-projects.proto

index db29fdb2a858654afb3a8bc9da4639ab712b0ca4..5fc3b07942c48acc842047ba66b03493e99d8b21 100644 (file)
@@ -83,3 +83,17 @@ message SearchMyScannableProjectsResponse {
 
   repeated Project projects = 1;
 }
+
+// WS api/projects/license_usage
+message LicenseUsageResponse {
+  message Project {
+    optional string projectKey = 1;
+    optional string projectName = 2;
+    optional string branch = 3;
+    optional string pullRequest = 4;
+    optional int32 linesOfCode = 5;
+    optional double licenseUsagePercentage = 6;
+  }
+
+  repeated Project projects = 1;
+}