diff options
author | Jeremy Davis <jeremy.davis@sonarsource.com> | 2021-11-01 14:01:02 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-11-03 20:03:31 +0000 |
commit | a8fd935e8321f946737324aa37d6a62e58f136d5 (patch) | |
tree | 3aba03c7977e7f75e512787290900df6f00f70a5 /sonar-ws | |
parent | df7fb7aedefdec0cf659da5dff7a031ca75a64e7 (diff) | |
download | sonarqube-a8fd935e8321f946737324aa37d6a62e58f136d5.tar.gz sonarqube-a8fd935e8321f946737324aa37d6a62e58f136d5.zip |
SONAR-15587 Sonarlint Promotion
Diffstat (limited to 'sonar-ws')
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/client/users/UsersService.java | 14 |
1 files changed, 14 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 edcad0df8be..599b8689266 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 @@ -244,4 +244,18 @@ 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_sonarlint_ad">Further information about this action online (including a response example)</a> + * @since 9.2 + */ + public void dismissSonarlintAd() { + call( + new PostRequest(path("dismiss_sonarlint_ad")) + .setMediaType(MediaTypes.JSON) + ).content(); + } } |