From 99da5bcecc8c5b31f2d2a9bed7337c05829a4d93 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Tue, 25 Apr 2017 10:04:55 +0200 Subject: [PATCH] Fix description of api/projects/create --- .../main/java/org/sonar/server/project/ws/CreateAction.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/project/ws/CreateAction.java b/server/sonar-server/src/main/java/org/sonar/server/project/ws/CreateAction.java index f6b4181287c..afd1579bad0 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/project/ws/CreateAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/project/ws/CreateAction.java @@ -35,8 +35,8 @@ import org.sonarqube.ws.client.project.CreateRequest; import static java.util.Optional.ofNullable; import static org.sonar.api.resources.Qualifiers.PROJECT; -import static org.sonar.server.component.NewComponent.newComponentBuilder; import static org.sonar.db.permission.OrganizationPermission.PROVISION_PROJECTS; +import static org.sonar.server.component.NewComponent.newComponentBuilder; import static org.sonar.server.project.ws.ProjectsWsSupport.PARAM_ORGANIZATION; import static org.sonar.server.ws.KeyExamples.KEY_PROJECT_EXAMPLE_001; import static org.sonar.server.ws.WsUtils.writeProtobuf; @@ -68,9 +68,7 @@ public class CreateAction implements ProjectsWsAction { public void define(WebService.NewController context) { WebService.NewAction action = context.createAction(ACTION_CREATE) .setDescription("Create a project.
" + - "Requires 'Create Projects' permission
" + - "Since 6.3, the response format has been updated and does not contain the database ID anymore
" + - "Since 6.3, the 'key' parameter has been renamed 'project'") + "Requires 'Create Projects' permission") .setSince("4.0") .setPost(true) .setResponseExample(getClass().getResource("create-example.json")) -- 2.39.5