How to get Restful API up and running using Wt
问题 I have a running Wt application based on the tutorials all over the web and I was wondering if there is an elegant way of using Wt to add a some Restful API functionality. I have a few resources I can expose from my current application and I don't want to implement any patches. If someone has a good idea of how to do that, or even a suggestion of some JSON library that can make the development a breeze, I'd be very thankful. 回答1: You should subclass WResource and implement the WResource: