Page 1 of 1
Create OData datasource programatically?
Posted: Tue Feb 16, 2021 7:48 am
by Feyd
I am trying to use data from a REST resource programatically in Java, and I think the only thing that comes close to that is using OData.
However, I cannot find the correct classes to create an OData datasource.
How can I do that?
Re: Create OData datasource programatically?
Posted: Tue Feb 16, 2021 10:24 am
by Vadim
Hello.
ODate is not supported by Java version.
You can try custom database -
https://www.stimulsoft.com/ru/samples/j ... in-runtime
Re: Create OData datasource programatically?
Posted: Tue Feb 16, 2021 6:33 pm
by Feyd
Oh okay, that's too bad.
So, you would recommend that I create something like a custom RESTDatabase (extends StiDatabase) or RESTDatasource?
One that I can use for REST calls, transforming JSON to something that Stimulsoft understands?
Re: Create OData datasource programatically?
Posted: Fri Feb 19, 2021 8:48 am
by Vadim
Hello.
I would recommend create something like a custom RESTDatabase (extends StiDatabase) - as in example