I'm assuming this was posted as a joke, because the HN crowd is pretty anti-Java.
You can, of course, take easier approaches. With RESTEasy, for instance, you add a single line of configuration to web.xml then add the desired annotations to your POJOs and you are in business.
Yes, when you go this route, it's very complicated. But good, user friendly frameworks have been built on top of these foundations, and those should be used.
You can, of course, take easier approaches. With RESTEasy, for instance, you add a single line of configuration to web.xml then add the desired annotations to your POJOs and you are in business.