diff options
author | Belen Pruvost <belen.pruvost@sonarsource.com> | 2022-06-02 14:23:15 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-06-02 20:03:18 +0000 |
commit | 1dfb0dffa770b324711e1a95fe814226e1220306 (patch) | |
tree | 4a01302e73c8833f9936fd189ae7cb94b19281bd /sonar-ws/src | |
parent | a5ef0bb06e670b09d1f0ab9b39553d69f3e92cd1 (diff) | |
download | sonarqube-1dfb0dffa770b324711e1a95fe814226e1220306.tar.gz sonarqube-1dfb0dffa770b324711e1a95fe814226e1220306.zip |
SONAR-16423 - Project license API changes
Diffstat (limited to 'sonar-ws/src')
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/client/projects/ProjectsService.java | 7 |
1 files changed, 3 insertions, 4 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 27cc69dbb3a..90781ba4bb2 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,7 +22,6 @@ 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; @@ -101,10 +100,10 @@ public class ProjectsService extends BaseService { * @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() { + public WsResponse licenseUsage() { GetRequest getRequest = new GetRequest(path("license_usage")) - .setMediaType(MediaTypes.CSV); - return call(getRequest).content(); + .setMediaType(MediaTypes.JSON); + return call(getRequest); } /** |