[TASK] Clean up almost all api controllers.
[FIX] bugs from api cleanup.