action.setChangelog(
new Change("6.3", "The response format has been updated and does not contain the database ID anymore"),
- new Change("6.3", "The 'key' parameter has been renamed 'project'"));
+ new Change("6.3", "The 'key' parameter has been renamed 'project'"),
+ new Change("7.1", "The 'visibility' parameter is public"));
action.createParam(PARAM_PROJECT)
.setDescription("Key of the project")
.setDescription("Whether the created project should be visible to everyone, or only specific user/groups.<br/>" +
"If no visibility is specified, the default project visibility of the organization will be used.")
.setRequired(false)
- .setInternal(true)
.setSince("6.4")
.setPossibleValues(Visibility.getLabels());
assertThat(organization.isRequired()).isFalse();
assertThat(organization.since()).isEqualTo("6.3");
- WebService.Param isPrivate = definition.param(PARAM_VISIBILITY);
- assertThat(isPrivate.description()).isNotEmpty();
- assertThat(isPrivate.isInternal()).isTrue();
- assertThat(isPrivate.isRequired()).isFalse();
- assertThat(isPrivate.since()).isEqualTo("6.4");
- assertThat(isPrivate.possibleValues()).containsExactlyInAnyOrder("private", "public");
+ WebService.Param visibilityParam = definition.param(PARAM_VISIBILITY);
+ assertThat(visibilityParam.description()).isNotEmpty();
+ assertThat(visibilityParam.isInternal()).isFalse();
+ assertThat(visibilityParam.isRequired()).isFalse();
+ assertThat(visibilityParam.since()).isEqualTo("6.4");
+ assertThat(visibilityParam.possibleValues()).containsExactlyInAnyOrder("private", "public");
WebService.Param project = definition.param(PARAM_PROJECT);
assertThat(project.isRequired()).isTrue();