@GET @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML}) @ApiOperation( value = "Get all customers", notes = "This will retrieve all customers for the company", response = Customers.class) @ApiResponses( value = { @ApiResponse(code = 200, message = "Customer(s) found"), @ApiResponse(code = 404, message = "Customer not found") }) public Response getCustomers() { final Customers customers = service.allCustomers(); if (customers == null || customers.getCustomers() == null || customers.getCustomers().isEmpty()) { return Response.status(Status.NOT_FOUND).entity(customerNotFound()).build(); } else { return Response.ok(customers).build(); } }