Added api directory which contains all the files for the api