// Get all authors @Path("/authors/{authorid}.json") @GET @Produces(MediaType.APPLICATION_JSON) public Author author(@PathParam("authorid") Integer id) { return _authorDao.getAuthor(id); }