create api controller