API datasource for rails