Figuring out the right way to do RESTful APIs in Java.