From 21b4be2173e36fef157e46582060e265edb1bf45 Mon Sep 17 00:00:00 2001 From: Guillaume Jambet Date: Wed, 31 Jan 2018 18:47:59 +0100 Subject: SONAR-10344 api/webhooks/search returns webhooks for global and project --- sonar-ws/src/main/protobuf/ws-webhooks.proto | 30 +++++++++++++++------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'sonar-ws') diff --git a/sonar-ws/src/main/protobuf/ws-webhooks.proto b/sonar-ws/src/main/protobuf/ws-webhooks.proto index 30ae14d8a4d..357bc403028 100644 --- a/sonar-ws/src/main/protobuf/ws-webhooks.proto +++ b/sonar-ws/src/main/protobuf/ws-webhooks.proto @@ -24,27 +24,29 @@ option java_package = "org.sonarqube.ws"; option java_outer_classname = "Webhooks"; option optimize_for = SPEED; -// WS api/webhooks/search +// GET api/webhooks/search message SearchWsResponse { repeated Search webhooks = 1; -} -message Search { - optional string key = 1; - optional string name = 2; - optional string url = 3; - optional LatestDelivery latestDelivery = 4; -} + message Search { + optional string key = 1; + optional string name = 2; + optional string url = 3; + optional LatestDelivery latestDelivery = 4; -message LatestDelivery { - optional string id = 1; - optional string at = 2; - optional string success = 3; - optional string httpStatus = 4; - optional string durationMs = 5; + message LatestDelivery { + optional string id = 1; + optional string at = 2; + optional string success = 3; + optional string httpStatus = 4; + optional string durationMs = 5; + } + } } + + // WS api/webhooks/deliveries message DeliveriesWsResponse { repeated Delivery deliveries = 1; -- cgit v1.2.3