Refactor reputation_chart_data method
Improve and refactor API specs
Add authorization to API controllers
Fix User model