working in restful framework