Example of API controllers implementation