adding get,post,put,and delete support for api