Add api controller
Add basic API flow
Add basic test