simple api - rails/json/