Adds rails api with example route and test.

@azevedo-252 what do you think?
ok but there's also FactoryGirl's ```build_stubbed```(http://robots.thoughtbot.com/use-factory-girls-build-stubbed-for-a-faster-test)