class UserController {

    @ApiOperation(value = "Delete user goal")
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = HttpStatuses.OK, response = Long.class),
            @ApiResponse(code = 303, message = HttpStatuses.SEE_OTHER),
            @ApiResponse(code = 400, message = HttpStatuses.BAD_REQUEST),
            @ApiResponse(code = 403, message = HttpStatuses.FORBIDDEN),
    })
    @DeleteMapping("/{userId}/userGoals")
    public ResponseEntity<List<Long>> bulkDeleteUserGoals(
            @ApiParam(value = "Ids of user goals separated by a comma \n e.g. 1,2", required = true)
            @Pattern(regexp = "^\\d+(,\\d+)*$", message = ValidationConstants.BAD_COMMA_SEPARATED_NUMBERS)
            @RequestParam String ids,
            @PathVariable @CurrentUserId Long userId) {
        return ResponseEntity.status(HttpStatus.OK).body(userService
                .deleteUserGoals(ids));
    }

}