From: Aurelien Poscia Date: Fri, 13 May 2022 12:34:27 +0000 (+0200) Subject: SONAR-16412 Add link to markdown syntax in documentation of Web API rules endpoint X-Git-Tag: 9.5.0.56709~137 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d782e04fa04567dcfafd237bc4f10a6c62f13972;p=sonarqube.git SONAR-16412 Add link to markdown syntax in documentation of Web API rules endpoint --- diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/rule/ws/CreateAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/rule/ws/CreateAction.java index 04ddcd300c3..fe17a6db147 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/rule/ws/CreateAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/rule/ws/CreateAction.java @@ -110,7 +110,7 @@ public class CreateAction implements RulesWsAction { action .createParam(PARAM_DESCRIPTION) .setRequired(true) - .setDescription("Rule description") + .setDescription("Rule description in markdown format") .setExampleValue("Description of my custom rule"); action diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/rule/ws/UpdateAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/rule/ws/UpdateAction.java index c6f791f7056..1b47dbd1bb5 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/rule/ws/UpdateAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/rule/ws/UpdateAction.java @@ -104,7 +104,7 @@ public class UpdateAction implements RulesWsAction { .setExampleValue("java8,security"); action.createParam(PARAM_MARKDOWN_NOTE) - .setDescription("Optional note in markdown format. Use empty value to remove current note. Note is not changed " + + .setDescription("Optional note in markdown format. Use empty value to remove current note. Note is not changed " + "if the parameter is not set.") .setExampleValue("my *note*"); @@ -131,7 +131,7 @@ public class UpdateAction implements RulesWsAction { action .createParam(PARAM_DESCRIPTION) - .setDescription("Rule description (mandatory for custom rule and manual rule)") + .setDescription("Rule description (mandatory for custom rule and manual rule) in markdown format") .setExampleValue("Description of my custom rule"); action