rabl integration + conversion to api