modifed api rest calls based on http methods