Introduce rest api

composer.lock should be placed in a global .gitignore, please remove