Changed the project structure of api