Rails API for salary app