Test the OData data source configuration
- Last Updated: September 9, 2021
- 3 minute read
- Hybrid Data Pipeline
- Version 5.0
- Documentation
You can test an OData data source configuration in the following ways.
- Test a data source from the Hybrid Data Pipeline Web UI.
- Test a data source using a REST client
- Test OData functions using a REST client
Test a data source from the Hybrid Data Pipeline Web UI
Take the following steps to test whether the data source and schema map are configured correctly.
- Navigate to the Data
Sources view by clicking the data sources icon
. - Select the OData-enabled data source definition, and click the link icon at the end of the row.
- Enter your Hybrid Data Pipeline credentials.
The browser returns an XML document listing the entities in the schema.
Test a data source using a REST client
Take the following steps to test a data source using a REST client. In this example, Postman is used as the REST client.
- Using the controls exposed by the REST client, select basic authorization and enter your Hybrid Data Pipeline credentials.
- If credentials for your data store are not saved in the data
source definition, pass them as values for
ddcloud-datasource-userandddcloud-datasource-passwordheaders. - From the OData tab of the data source you are testing, copy the OData Access URI. Then paste the URI in the URL field of the REST client.
- Execute a GET on the data source endpoint. For
example:
GET https://service.myserver.com/api/odata4/db2ds
The response payload returns a list of entities exposed by the OData schema map.
Test OData functions using a REST client
Take the following steps to test OData function invocation using a REST client. Again, Postman is used as the REST client.
- Using the controls exposed by the REST client, select basic authorization and enter your Hybrid Data Pipeline credentials.
- If credentials for your data store are not saved in the data
source definition, pass them as values for
ddcloud-datasource-userandddcloud-datasource-passwordheaders. - From the OData tab of the
data source you are testing, copy the OData Access
URI. Then paste the URI in the URL field of the REST client.
Append the URI with the
$metadataendpoint. - Execute a GET on the
$metadataendpoint. For example:GET https://service.myserver.com/api/odata4/sample_datasource/$metadata
The response payload returns the OData schema map in XML format. The schema map includes any functions exposed in the OData model.
The function import name can be used to invoke the function independently.
Table names can be used to return data stored in tables.
The function name can be used to invoke the function as part of a
$filter query.