class NewsSubscriberController {

    @ApiOperation(value = "Get all emails for sending news.")
    @ApiResponses(value = {
        @ApiResponse(code = 200, message = HttpStatuses.OK),
        @ApiResponse(code = 400, message = HttpStatuses.BAD_REQUEST),
        @ApiResponse(code = 403, message = HttpStatuses.FORBIDDEN),
    })
    @GetMapping("")
    public ResponseEntity<List<NewsSubscriberResponseDto>> getAll() {
        return ResponseEntity.status(HttpStatus.OK).body(newsSubscriberService.findAll());
    }

    @Autowired public  NewsSubscriberController(NewsSubscriberService newsSubscriberService);

}