Ver código fonte

SONAR-9016 Fix example file names in user groups WS

tags/6.4-RC1
Julien Lancelot 7 anos atrás
pai
commit
bf07e0fb2e

+ 1
- 1
server/sonar-server/src/main/java/org/sonar/server/usergroups/ws/CreateAction.java Ver arquivo

@@ -59,7 +59,7 @@ public class CreateAction implements UserGroupsWsAction {
"Requires the following permission: 'Administer System'.")
.setHandler(this)
.setPost(true)
.setResponseExample(getClass().getResource("example-create.json"))
.setResponseExample(getClass().getResource("create-example.json"))
.setSince("5.2");

action.createParam(PARAM_ORGANIZATION_KEY)

+ 2
- 2
server/sonar-server/src/main/java/org/sonar/server/usergroups/ws/SearchAction.java Ver arquivo

@@ -39,8 +39,8 @@ import org.sonar.server.es.SearchOptions;
import org.sonar.server.user.UserSession;

import static org.apache.commons.lang.StringUtils.defaultIfBlank;
import static org.sonar.server.es.SearchOptions.MAX_LIMIT;
import static org.sonar.db.permission.OrganizationPermission.ADMINISTER;
import static org.sonar.server.es.SearchOptions.MAX_LIMIT;
import static org.sonar.server.usergroups.ws.GroupWsSupport.PARAM_ORGANIZATION_KEY;

public class SearchAction implements UserGroupsWsAction {
@@ -67,7 +67,7 @@ public class SearchAction implements UserGroupsWsAction {
.setDescription("Search for user groups.<br>" +
"Requires the following permission: 'Administer System'.")
.setHandler(this)
.setResponseExample(getClass().getResource("example-search.json"))
.setResponseExample(getClass().getResource("search-example.json"))
.setSince("5.2")
.addFieldsParam(ALL_FIELDS)
.addPagingParams(100, MAX_LIMIT)

+ 1
- 1
server/sonar-server/src/main/java/org/sonar/server/usergroups/ws/UpdateAction.java Ver arquivo

@@ -65,7 +65,7 @@ public class UpdateAction implements UserGroupsWsAction {
"Requires the following permission: 'Administer System'.")
.setHandler(this)
.setPost(true)
.setResponseExample(getClass().getResource("example-update.json"))
.setResponseExample(getClass().getResource("update.example.json"))
.setSince("5.2")
.setChangelog(new Change("6.4", "The default group is no longer editable"));


server/sonar-server/src/main/resources/org/sonar/server/usergroups/ws/example-create.json → server/sonar-server/src/main/resources/org/sonar/server/usergroups/ws/create-example.json Ver arquivo


server/sonar-server/src/main/resources/org/sonar/server/usergroups/ws/example-search.json → server/sonar-server/src/main/resources/org/sonar/server/usergroups/ws/search-example.json Ver arquivo


+ 9
- 0
server/sonar-server/src/main/resources/org/sonar/server/usergroups/ws/update-example.json Ver arquivo

@@ -0,0 +1,9 @@
{
"group": {
"id": 42,
"organization": "my-org",
"name": "new-name",
"description": "New Description",
"membersCount": 1
}
}

Carregando…
Cancelar
Salvar