A simple Rails JSON API using repositories and services