added support for rest get/post