added api features using rabl gem