class CategoryResource {

    @GET
    @Path("/categories")
    public Response findAll(@BeanParam PageableImpl pageable) {
        LOGGER.debug("REST request to get all Categories");
        return Response.ok().entity(categoryService.findAll(pageable)).build();
    }

    @Inject public  CategoryResource(CategoryService categoryService);

}