updated api folder

added an api folder to break the api apart into individual file