Added base class for api controller