A Rails API that serves JSON with tests