added restful apis