Adding Rails API