add api controller

I added controller for Rest API and oauth provider with doorkeeper.