Rails-based JSON API