Adds rails api with example route and test.

@azevedo-252 what do you think?
I don't like the string for the route, but since it's not supposed to change maybe it's better if it breaks when changing.