added api_controller for REST api