[TASK] Repository refactoring
[TASK] Add full request validation
[TASK] Add basic functional test