.setExampleValue("org.sonarsource:sonarqube,some.other:project") .setRequired(false) .setMaxValuesAllowed(MAXIMUM_RECENTLY_BROWSED);
.setDeprecatedKey("old-severity", "4.5") .setPossibleValues("INFO", "MAJOR", "BLOCKER") .setMaxValuesAllowed(10); newAction.createParam("internal") .setInternal(true);
@Override public void define(WebService.NewController context) { WebService.NewAction action = context.createAction(ACTION) .setPost(false) .setDescription("Search for organizations") .setResponseExample(getClass().getResource("search-example.json")) .setInternal(true) .setSince("6.2") .setChangelog(new Change("7.5", format("Return 'subscription' field when parameter '%s' is set to 'true'", PARAM_MEMBER))) .setChangelog(new Change("7.5", "Removed 'isAdmin' and return 'actions' for each organization")) .setChangelog(new Change("6.4", "Paging fields have been added to the response")) .setHandler(this); action.createParam(PARAM_ORGANIZATIONS) .setDescription("Comma-separated list of organization keys") .setExampleValue(String.join(",", "my-org-1", "foocorp")) .setMaxValuesAllowed(MAX_SIZE) .setRequired(false) .setSince("6.3"); action.createParam(PARAM_MEMBER) .setDescription("Filter organizations based on whether the authenticated user is a member. If false, no filter applies.") .setSince("7.0") .setDefaultValue("false") .setBooleanPossibleValues(); action.addPagingParams(100, MAX_SIZE); }
.setMaxValuesAllowed(MAX_METRIC_KEYS); createAdditionalFieldsParameter(action); createDeveloperParameters(action);
.setMaxValuesAllowed(DatabaseUtils.PARTITION_SIZE_FOR_ORACLE) .setExampleValue(String.join(",", KEY_PROJECT_EXAMPLE_001, KEY_PROJECT_EXAMPLE_002)); .setMaxValuesAllowed(DatabaseUtils.PARTITION_SIZE_FOR_ORACLE) .setExampleValue(String.join(",", UUID_EXAMPLE_01, UUID_EXAMPLE_02));
.setMaxValuesAllowed(DatabaseUtils.PARTITION_SIZE_FOR_ORACLE) .setExampleValue(String.join(",", KEY_PROJECT_EXAMPLE_001, KEY_PROJECT_EXAMPLE_002));
.setExampleValue("org.sonarsource:sonarqube,some.other:project") .setRequired(false) .setMaxValuesAllowed(MAXIMUM_RECENTLY_BROWSED);
@Override public void define(WebService.NewController context) { WebService.NewAction action = context.createAction(ACTION) .setPost(false) .setDescription("Search for organizations") .setResponseExample(getClass().getResource("search-example.json")) .setInternal(true) .setSince("6.2") .setChangelog(new Change("6.4", "Paging fields have been added to the response")) .setHandler(this); action.createParam(PARAM_ORGANIZATIONS) .setDescription("Comma-separated list of organization keys") .setExampleValue(String.join(",", "my-org-1", "foocorp")) .setMaxValuesAllowed(MAX_SIZE) .setRequired(false) .setSince("6.3"); action.createParam(PARAM_MEMBER) .setDescription("Filter organizations based on whether the authenticated user is a member. If false, no filter applies.") .setSince("7.0") .setDefaultValue(String.valueOf(false)) .setBooleanPossibleValues(); action.addPagingParams(100, MAX_SIZE); }
.setMaxValuesAllowed(MAX_METRIC_KEYS); createAdditionalFieldsParameter(action); createDeveloperParameters(action);
.setMaxValuesAllowed(DatabaseUtils.PARTITION_SIZE_FOR_ORACLE) .setExampleValue(String.join(",", KEY_PROJECT_EXAMPLE_001, KEY_PROJECT_EXAMPLE_002)); .setMaxValuesAllowed(DatabaseUtils.PARTITION_SIZE_FOR_ORACLE) .setExampleValue(String.join(",", UUID_EXAMPLE_01, UUID_EXAMPLE_02));
.setMaxValuesAllowed(DatabaseUtils.PARTITION_SIZE_FOR_ORACLE) .setExampleValue(String.join(",", KEY_PROJECT_EXAMPLE_001, KEY_PROJECT_EXAMPLE_002));
action.createParam("has_maximum_values").setMaxValuesAllowed(2);