diff options
author | Pierre <pierre.guillot@sonarsource.com> | 2022-07-07 15:29:09 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-07-12 14:30:04 +0000 |
commit | b7337e90fe3a896367ec2f4dda1684e0a2b177a8 (patch) | |
tree | af548493c8322882a5a20aef4a4b2f506cac7725 /sonar-ws | |
parent | 72f42f71246601936ee5cea352f587b0e8da6640 (diff) | |
download | sonarqube-b7337e90fe3a896367ec2f4dda1684e0a2b177a8.tar.gz sonarqube-b7337e90fe3a896367ec2f4dda1684e0a2b177a8.zip |
SONAR-16599 Create a new endpoint to dismiss notice
Diffstat (limited to 'sonar-ws')
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/client/users/UsersService.java | 16 | ||||
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-users.proto | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/users/UsersService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/users/UsersService.java index f0b83571dd4..0bdf172ec5c 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/users/UsersService.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/users/UsersService.java @@ -230,4 +230,20 @@ public class UsersService extends BaseService { .setMediaType(MediaTypes.JSON) ).content(); } + + + /** + * + * This is part of the internal API. + * This is a POST request. + * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/users/dismiss_notice">Further information about this action online (including a response example)</a> + * @since 9.6 + */ + public void dismissNotice(String notice) { + call( + new PostRequest(path("dismiss_notice")) + .setParam("notice", notice) + ).content(); + } + } diff --git a/sonar-ws/src/main/protobuf/ws-users.proto b/sonar-ws/src/main/protobuf/ws-users.proto index 52579c59150..462aa020fc8 100644 --- a/sonar-ws/src/main/protobuf/ws-users.proto +++ b/sonar-ws/src/main/protobuf/ws-users.proto @@ -113,6 +113,7 @@ message CurrentWsResponse { reserved 15; // settings removed optional bool usingSonarLintConnectedMode = 16; optional bool sonarLintAdSeen = 17; + map<string,bool> dismissedNotices = 18; message Permissions { repeated string global = 1; |