I have an example project that you can check that has an OData working test: https://github.com/Marcus-L/Test-Upshot
Here's the code snippet:
upshot.dataSources = upshot.dataSources || {};
upshot.dataSources.ParentThings = upshot.RemoteDataSource({
provider: upshot.ODataDataProvider,
providerParameters: { url: "/OData.svc", operationName: "ParentThings", operationParameters: { $expand: "Children"} },
bufferChanges: true,
dataContext: undefined,
mapping: {}
});
upshot.dataSources.ParentThings.refresh();
source
share