started converting api to a resetful service
remove unneeded require
rest refactor