build out rails API