create api controller base class