aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-10-13 14:26:52 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-10-23 08:01:13 -0700
commit27ab750cd6c6f9c74f46ecd852661f323860b7ed (patch)
tree6d9c3674a41c285d63707a1c8e6e8adf4d1b935b /sonar-ws
parentf4d47d3d82b331c1a79db68b8eb50f6a1962128b (diff)
downloadsonarqube-27ab750cd6c6f9c74f46ecd852661f323860b7ed.tar.gz
sonarqube-27ab750cd6c6f9c74f46ecd852661f323860b7ed.zip
SONAR-9939 add WS api/editions/preview (mock implementation)
same mock implementation as for api/editions/apply_license
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/protobuf/ws-editions.proto12
1 files changed, 12 insertions, 0 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-editions.proto b/sonar-ws/src/main/protobuf/ws-editions.proto
index 8f173acc923..791ad47215f 100644
--- a/sonar-ws/src/main/protobuf/ws-editions.proto
+++ b/sonar-ws/src/main/protobuf/ws-editions.proto
@@ -39,3 +39,15 @@ enum InstallationStatus {
AUTOMATIC_FAILED = 3;
MANUAL_IN_PROGRESS = 4;
}
+
+// POST api/editions/preview
+message PreviewResponse {
+ optional string nextEditionKey = 1;
+ optional PreviewStatus previewStatus = 2;
+}
+
+enum PreviewStatus {
+ NO_INSTALL = 0;
+ AUTOMATIC_INSTALL = 1;
+ MANUAL_INSTALL = 2;
+}