Updated .gitignore repo root directory and added a .gitignore to 'api' directory.