@GET @Path("/{autoId}") @Produces(MediaType.APPLICATION_JSON) public Response getMenu(@PathParam("autoId") Long autoId) { // TODO Auto-generated method stub return Response.ok().entity(service.getMenu(autoId)).build(); }