This is a followed tutorial from scotch.io on JSON API with following stack: Rails API RSpec with Factory Girl, Database Cleaner, Shoulda Matchers and Faker