/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/suggestions">Further information about this action online (including a response example)</a> * @since 4.2 */ public SuggestionsWsResponse suggestions(SuggestionsRequest request) { return call( new GetRequest(path("suggestions")) .setParam("more", request.getMore()) .setParam("recentlyBrowsed", request.getRecentlyBrowsed() == null ? null : request.getRecentlyBrowsed().stream().collect(Collectors.joining(","))) .setParam("s", request.getS()), SuggestionsWsResponse.parser()); }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/search_projects">Further information about this action online (including a response example)</a> * @since 6.2 */ public SearchProjectsWsResponse searchProjects(SearchProjectsRequest request) { return call( new GetRequest(path("search_projects")) .setParam("asc", request.getAsc()) .setParam("f", request.getF() == null ? null : request.getF().stream().collect(Collectors.joining(","))) .setParam("facets", request.getFacets() == null ? null : request.getFacets().stream().collect(Collectors.joining(","))) .setParam("filter", request.getFilter()) .setParam("organization", request.getOrganization()) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .setParam("s", request.getS()), SearchProjectsWsResponse.parser()); }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/search">Further information about this action online (including a response example)</a> * @since 6.3 */ public SearchWsResponse search(SearchRequest request) { return call( new GetRequest(path("search")) .setParam("language", request.getLanguage()) .setParam("organization", request.getOrganization()) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .setParam("q", request.getQ()) .setParam("qualifiers", request.getQualifiers() == null ? null : request.getQualifiers().stream().collect(Collectors.joining(","))), SearchWsResponse.parser()); }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/tree">Further information about this action online (including a response example)</a> * @since 5.4 */ public TreeWsResponse tree(TreeRequest request) { return call( new GetRequest(path("tree")) .setParam("asc", request.getAsc()) .setParam("branch", request.getBranch()) .setParam("component", request.getComponent()) .setParam("componentId", request.getComponentId()) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .setParam("pullRequest", request.getPullRequest()) .setParam("q", request.getQ()) .setParam("qualifiers", request.getQualifiers() == null ? null : request.getQualifiers().stream().collect(Collectors.joining(","))) .setParam("s", request.getS() == null ? null : request.getS().stream().collect(Collectors.joining(","))) .setParam("strategy", request.getStrategy()), TreeWsResponse.parser()); } }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/show">Further information about this action online (including a response example)</a> * @since 5.4 */ public ShowWsResponse show(ShowRequest request) { return call( new GetRequest(path("show")) .setParam("branch", request.getBranch()) .setParam("component", request.getComponent()) .setParam("componentId", request.getComponentId()) .setParam("pullRequest", request.getPullRequest()), ShowWsResponse.parser()); }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/app">Further information about this action online (including a response example)</a> * @since 4.4 */ public String app(AppRequest request) { return call( new GetRequest(path("app")) .setParam("branch", request.getBranch()) .setParam("component", request.getComponent()) .setParam("componentId", request.getComponentId()) .setParam("pullRequest", request.getPullRequest()) .setMediaType(MediaTypes.JSON) ).content(); }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/suggestions">Further information about this action online (including a response example)</a> * @since 4.2 */ public SuggestionsWsResponse suggestions(SuggestionsRequest request) { return call( new GetRequest(path("suggestions")) .setParam("more", request.getMore()) .setParam("recentlyBrowsed", request.getRecentlyBrowsed() == null ? null : request.getRecentlyBrowsed().stream().collect(Collectors.joining(","))) .setParam("s", request.getS()), SuggestionsWsResponse.parser()); }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/search_projects">Further information about this action online (including a response example)</a> * @since 6.2 */ public SearchProjectsWsResponse searchProjects(SearchProjectsRequest request) { return call( new GetRequest(path("search_projects")) .setParam("asc", request.getAsc()) .setParam("f", request.getF() == null ? null : request.getF().stream().collect(Collectors.joining(","))) .setParam("facets", request.getFacets() == null ? null : request.getFacets().stream().collect(Collectors.joining(","))) .setParam("filter", request.getFilter()) .setParam("organization", request.getOrganization()) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .setParam("s", request.getS()), SearchProjectsWsResponse.parser()); }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/search">Further information about this action online (including a response example)</a> * @since 6.3 */ public SearchWsResponse search(SearchRequest request) { return call( new GetRequest(path("search")) .setParam("language", request.getLanguage()) .setParam("organization", request.getOrganization()) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .setParam("q", request.getQ()) .setParam("qualifiers", request.getQualifiers() == null ? null : request.getQualifiers().stream().collect(Collectors.joining(","))), SearchWsResponse.parser()); }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/tree">Further information about this action online (including a response example)</a> * @since 5.4 */ public TreeWsResponse tree(TreeRequest request) { return call( new GetRequest(path("tree")) .setParam("asc", request.getAsc()) .setParam("branch", request.getBranch()) .setParam("component", request.getComponent()) .setParam("componentId", request.getComponentId()) .setParam("p", request.getP()) .setParam("ps", request.getPs()) .setParam("pullRequest", request.getPullRequest()) .setParam("q", request.getQ()) .setParam("qualifiers", request.getQualifiers() == null ? null : request.getQualifiers().stream().collect(Collectors.joining(","))) .setParam("s", request.getS() == null ? null : request.getS().stream().collect(Collectors.joining(","))) .setParam("strategy", request.getStrategy()), TreeWsResponse.parser()); } }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/show">Further information about this action online (including a response example)</a> * @since 5.4 */ public ShowWsResponse show(ShowRequest request) { return call( new GetRequest(path("show")) .setParam("branch", request.getBranch()) .setParam("component", request.getComponent()) .setParam("componentId", request.getComponentId()) .setParam("pullRequest", request.getPullRequest()), ShowWsResponse.parser()); }
/** * * This is part of the internal API. * This is a GET request. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/components/app">Further information about this action online (including a response example)</a> * @since 4.4 */ public String app(AppRequest request) { return call( new GetRequest(path("app")) .setParam("branch", request.getBranch()) .setParam("component", request.getComponent()) .setParam("componentId", request.getComponentId()) .setParam("pullRequest", request.getPullRequest()) .setMediaType(MediaTypes.JSON) ).content(); }