@@ -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) |
@@ -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) |
@@ -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")); | |||
@@ -0,0 +1,9 @@ | |||
{ | |||
"group": { | |||
"id": 42, | |||
"organization": "my-org", | |||
"name": "new-name", | |||
"description": "New Description", | |||
"membersCount": 1 | |||
} | |||
} |