import java.util.function.Consumer;
import java.util.function.Function;
import java.util.stream.Stream;
+import org.sonar.api.server.ws.Change;
import org.sonar.api.server.ws.Request;
import org.sonar.api.server.ws.Response;
import org.sonar.api.server.ws.WebService;
public void define(WebService.NewController context) {
WebService.NewAction action = context.createAction(ACTION_EDIT_COMMENT)
.setDescription("Edit a comment.<br/>" +
- "Requires authentication and the following permission: 'Browse' on the project of the specified issue.<br/>" +
- "Since 6.3, the response contains the issue with all details, not only the edited comment.<br/>" +
- "Since 6.3, 'key' parameter has been renamed %s", PARAM_COMMENT)
+ "Requires authentication and the following permission: 'Browse' on the project of the specified issue.")
.setSince("3.6")
+ .setChangelog(
+ new Change("6.3", "the response returns the issue with all its details"),
+ new Change("6.3", format("the 'key' parameter has been renamed %s", PARAM_COMMENT))
+ )
.setHandler(this)
.setResponseExample(Resources.getResource(this.getClass(), "edit_comment-example.json"))
.setPost(true);