Finish REST API
Add main and test src folders
solve .gitignore conflict