API implementation for rails tutorial app using oak