From: Julien Lancelot Date: Tue, 25 Apr 2017 08:04:55 +0000 (+0200) Subject: Fix description of api/projects/create X-Git-Tag: 6.4-RC1~278 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=99da5bcecc8c5b31f2d2a9bed7337c05829a4d93;p=sonarqube.git Fix description of api/projects/create --- 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"))