Last active
August 29, 2015 14:03
-
-
Save maggandalf/56212049add9627ee64a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Singleton | |
@Path("comments") | |
public class CommentsService { | |
@GET | |
@Path("{isbn}") | |
@Produces(MediaType.APPLICATION_JSON) | |
public JsonArray bookComments(@PathParam("isbn") String isbn) { | |
return Json.createArrayBuilder().add("Good Book").add("Awesome").build(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment