Adds rails api with example route and test.

@azevedo-252 what do you think?
```request_body```?
Not sure about having the data format in the name