class NewsSubscriberController {

    @ApiOperation(value = "Save email in database for receiving news.")
    @ApiResponses(value = {
        @ApiResponse(code = 201, message = HttpStatuses.OK),
        @ApiResponse(code = 400, message = HttpStatuses.BAD_REQUEST),
        @ApiResponse(code = 403, message = HttpStatuses.FORBIDDEN),
    })
    @PostMapping("")
    public ResponseEntity<NewsSubscriberRequestDto> save(
        @RequestBody @Valid NewsSubscriberRequestDto dto) {
        return ResponseEntity.status(HttpStatus.OK)
            .body(newsSubscriberService.save(dto));
    }

    @Autowired public  NewsSubscriberController(NewsSubscriberService newsSubscriberService);

}