Refactoring API with rabl and will_paginate