API controller base class