Adds rails api with example route and test.

@azevedo-252 what do you think?
Do you really need to create. Can't you stub? It would make the test faster