This REST framework is made of... just 4 classes (+ a basic sample). There are 3 more classes to implement a lightweight JSON parser. It allows to easily provide web resources in CRUD mode, as usual in REST style.
It aims at being mixed in your own code (although you may also include it as any other 3rd-party tool):
feel free to take (parts of) the code, rename packages/classes, add new functionalities, fix whatever you consider a bug...
and mix the result in your own project.
To make it possible, this code is covered by a BSD license.
This project is itself a web application: when deployed on a servlet container, the sample described below should be up and running (links are provided).
So, try to export it as a .war package, deploy it on your app server, and open the webapp in a web browser (this page should be displayed).
Then have a look at the rest.sample package. There is a servlet that registers 2 resources: