diff options
author | Léo Geoffroy <leo.geoffroy@sonarsource.com> | 2022-03-04 14:25:57 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-03-09 20:02:59 +0000 |
commit | 79d7236821599ad72acc6d82a9cdb0e5f59568a7 (patch) | |
tree | 79112296eb074839a947a95f5b0a788cc9e697f3 /sonar-ws | |
parent | 07bfdaa5256a44787aa15cf16155eaceaec9a452 (diff) | |
download | sonarqube-79d7236821599ad72acc6d82a9cdb0e5f59568a7.tar.gz sonarqube-79d7236821599ad72acc6d82a9cdb0e5f59568a7.zip |
SONAR-16073 add integration test for new endpoint
Diffstat (limited to 'sonar-ws')
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java index dca4a15cbea..27cc69dbb3a 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java @@ -22,6 +22,7 @@ package org.sonarqube.ws.client.projects; import java.util.stream.Collectors; import javax.annotation.Generated; import org.sonarqube.ws.MediaTypes; +import org.sonarqube.ws.Projects; import org.sonarqube.ws.Projects.CreateWsResponse; import org.sonarqube.ws.Projects.SearchMyProjectsWsResponse; import org.sonarqube.ws.Projects.SearchWsResponse; @@ -97,6 +98,19 @@ public class ProjectsService extends BaseService { * * This is part of the internal API. * This is a GET request. + * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/projects/license_usage">Further information about this action online (including a response example)</a> + * @since 9.4 + */ + public String licenseUsage() { + GetRequest getRequest = new GetRequest(path("license_usage")) + .setMediaType(MediaTypes.CSV); + return call(getRequest).content(); + } + + /** + * + * This is part of the internal API. + * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/projects/search">Further information about this action online (including a response example)</a> * @since 6.3 */ |