a simple restful framework