Initialize Rails API framework