From 96a239a79f6517b825a18f1c539b9c0a99cb1e64 Mon Sep 17 00:00:00 2001 From: Belen Pruvost Date: Thu, 2 Jun 2022 19:43:28 +0200 Subject: [PATCH] SONAR-16423 - License Usage endpoint should be standard API --- sonar-ws/src/main/protobuf/ws-projects.proto | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sonar-ws/src/main/protobuf/ws-projects.proto b/sonar-ws/src/main/protobuf/ws-projects.proto index db29fdb2a85..5fc3b07942c 100644 --- a/sonar-ws/src/main/protobuf/ws-projects.proto +++ b/sonar-ws/src/main/protobuf/ws-projects.proto @@ -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; +} -- 2.39.5