A simple Rails JSON API using repositories