Refactor api endpoints and models structure

Andrey Veltischev requested to merge andrey/refactoring into master

Merge request reports