aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorGuillaume Jambet <guillaume.jambet@sonarsource.com>2018-01-31 18:47:59 +0100
committerGuillaume Jambet <guillaume.jambet@gmail.com>2018-03-01 15:21:05 +0100
commit21b4be2173e36fef157e46582060e265edb1bf45 (patch)
tree8e94b30ef647a93fb1c24750fec518458615c2aa /sonar-ws
parent3c5c062c8bf27f5ed93c72871d9d9ddcf4c0c548 (diff)
downloadsonarqube-21b4be2173e36fef157e46582060e265edb1bf45.tar.gz
sonarqube-21b4be2173e36fef157e46582060e265edb1bf45.zip
SONAR-10344 api/webhooks/search returns webhooks for global and project
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/protobuf/ws-webhooks.proto30
1 files changed, 16 insertions, 14 deletions
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;