]> source.dussan.org Git - sonarqube.git/commitdiff
Fix description of api/projects/create
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 25 Apr 2017 08:04:55 +0000 (10:04 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 25 Apr 2017 08:51:31 +0000 (10:51 +0200)
server/sonar-server/src/main/java/org/sonar/server/project/ws/CreateAction.java

index f6b4181287ca080d5a798d8091c8025e47cb50da..afd1579bad073572fcd45d906aa6de01421b2708 100644 (file)
@@ -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.<br/>" +
-        "Requires 'Create Projects' permission<br/>" +
-        "Since 6.3, the response format has been updated and does not contain the database ID anymore<br/>" +
-        "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"))