Adds rails api with example route and test.

@azevedo-252 what do you think?
Oh didn't see this change.
With RSpec 3 it now looks like:
```allow(Book).to receive(:all).and_return(build_stubbed_list(:book, 10))```