create api, api controller on client