From d651bd4c8f834d1a14fa87a7557e834c86c9df56 Mon Sep 17 00:00:00 2001 From: Guillaume Jambet Date: Thu, 8 Mar 2018 12:17:35 +0100 Subject: SONAR-9206 Enhance /api/components/search_projects response with organizations --- sonar-ws/src/main/protobuf/ws-components.proto | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'sonar-ws') diff --git a/sonar-ws/src/main/protobuf/ws-components.proto b/sonar-ws/src/main/protobuf/ws-components.proto index a995eb42cbc..0218de0edee 100644 --- a/sonar-ws/src/main/protobuf/ws-components.proto +++ b/sonar-ws/src/main/protobuf/ws-components.proto @@ -69,11 +69,6 @@ message SuggestionsWsResponse { optional bool isFavorite = 7; } - message Organization { - optional string key = 1; - optional string name = 2; - } - message Project { optional string key = 1; optional string name = 2; @@ -83,8 +78,9 @@ message SuggestionsWsResponse { // WS api/components/search_projects message SearchProjectsWsResponse { optional sonarqube.ws.commons.Paging paging = 1; - repeated Component components = 2; - optional sonarqube.ws.commons.Facets facets = 3; + repeated Organization organizations = 2; + repeated Component components = 3; + optional sonarqube.ws.commons.Facets facets = 4; } // WS api/components/provisioned @@ -129,3 +125,10 @@ message Component { } } +message Organization { + optional string key = 1; + optional string name = 2; +} + + + -- cgit v1.2.3