getRepositoryResponseEntity allow Out of Storage Repository Operations
@@ -286,14 +286,11 @@ public class StoragesConfigurationController
}
@ApiOperation(value = "Returns the configuration of a repository.")
- @ApiResponses(value = { @ApiResponse(code = 200,
- message = "The repository was updated successfully.",
- response = RepositoryDto.class),
- @ApiResponse(code = 404,
- message = "The repository ${storageId}:${repositoryId} was not found!") })
+ @ApiResponses(value = { @ApiResponse(code = 200, message = "The repository was updated successfully.", response = RepositoryDto.class),
+ @ApiResponse(code = 404, message = "The repository ${storageId}:${repositoryId} was not found!") })
@PreAuthorize("hasAuthority('CONFIGURATION_VIEW_REPOSITORY')")
@GetMapping(value = "/{storageId}/{repositoryId}", produces = MediaType.APPLICATION_JSON_VALUE)
- public ResponseEntity getRepositoryResponseEntity(@RepositoryMapping Repository repository)
+ public ResponseEntity getRepositoryResponseEntity(@RepositoryMapping(allowOutOfServiceRepository = true) Repository repository)
{
return ResponseEntity.ok(repository);
}
