aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorMark Rekveld <mark.rekveld@sonarsource.com>2021-01-06 16:44:11 +0100
committersonartech <sonartech@sonarsource.com>2021-01-14 20:30:31 +0000
commitb246cc9646aa695aec156282e81157b3c3544a71 (patch)
tree1e3477ddcd64e8b989bca7b5d73b8291749cbcc8 /sonar-ws
parenta42c39d23049b6aa12ad79ca87e8c4b231763f37 (diff)
downloadsonarqube-b246cc9646aa695aec156282e81157b3c3544a71.tar.gz
sonarqube-b246cc9646aa695aec156282e81157b3c3544a71.zip
SONAR-14306 - Moved SearchEvent WS to community edition
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/developers/DevelopersService.java2
-rw-r--r--sonar-ws/src/main/protobuf/ws-developers.proto24
2 files changed, 25 insertions, 1 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/developers/DevelopersService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/developers/DevelopersService.java
index 58cf6677b11..e41538fb157 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/developers/DevelopersService.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/developers/DevelopersService.java
@@ -49,6 +49,6 @@ public class DevelopersService extends BaseService {
.setParam("from", request.getFrom() == null ? null : request.getFrom().stream().collect(Collectors.joining(",")))
.setParam("projects", request.getProjects() == null ? null : request.getProjects().stream().collect(Collectors.joining(",")))
.setMediaType(MediaTypes.JSON)
- ).content();
+ ).content();
}
}
diff --git a/sonar-ws/src/main/protobuf/ws-developers.proto b/sonar-ws/src/main/protobuf/ws-developers.proto
new file mode 100644
index 00000000000..a59cb7a3f5a
--- /dev/null
+++ b/sonar-ws/src/main/protobuf/ws-developers.proto
@@ -0,0 +1,24 @@
+// Copyright (C) 2017-2017 SonarSource SA
+// All rights reserved
+// mailto:info AT sonarsource DOT com
+
+syntax = "proto2";
+
+package sonarqube.ws.component;
+
+option java_package = "org.sonarqube.ws";
+option java_outer_classname = "Developers";
+option optimize_for = SPEED;
+
+// WS api/developers/search_events
+message SearchEventsWsResponse {
+ repeated Event events = 1;
+
+ message Event {
+ optional string category = 1;
+ optional string message = 2;
+ optional string link = 3;
+ optional string project = 4;
+ optional string date = 5;
+ }
+}