chore(api): added version of RESTful API
refactor(api): API refactoring, unit tests fixes