Added an API controller

Please review my pull request for a new API Controller