Quick Start: Connect to a REST API
Key Points: Connect to REST API
- You can easily connect to REST APIs with TimeXtender. JSON is the most common way to do so, but XML is also supported.
- RSD file is generated by TimeXtender and can be used with more advanced features such as pagination and adding parameters.
- Row Scan Depth infers the data type of a field with the specified number of rows. Setting Row Scan Depth to 0 scans all rows, and can help resolve some data type issues on load.
Key Steps: Connect to REST API
Add a single REST API data source
- Select Add Data Source from Data Sources on your ODX Server
- Provide a Name for the data source
- Select the most recent CData REST provider
- Specify the URI under Connection as the main endpoint
- Specify values for your required Authentication type (common options include HTTP or OAuth)
- Complete the connection information, as your data source requires
- Select the tables you wish to include
- Create a task (a scheduled data load), if you choose, then select Finish
- Select Synchronize Objects under the new data source, to prepare the data connection for transfer to your
- Select Execute under the new data source task
Add multiple REST connections
- Create the REST connection (see steps 1-5 above).
- Specify the URI under Connection as the main endpoint
- Select OnStart for "Generate Schema Files" under Misc
- Set the path to a folder where you can save the schema files in Location under Schema
- Complete the REST connection, task setup, and synchronization (see steps 6-9 above)
- Select Edit Custom Data Source on the new REST data source
- Change the URI, to another URI data source within the REST
- Click OK
- Select Synchronize Objects on the REST data source. This will recognize the next URI as another table, and save another schema file in the defined location.
- Repeat steps 6-9 until all files are added
- Finally, select Edit Custom Data Source on the REST data source
- Change value for "Generate Schema Files" to NEVER (from OnStart) under Misc
For more detailed instructions, please see Connect to a REST API.
Understanding Connect to a REST API
TimeXtender makes it simple to add a REST API connection. Both JSON and XML are supported as standard ways to connect to REST data. Advanced functionalities such as parsing hierarchical data, pagination, and adding parameters via the RSD file, are also possible.
For more detailed information, please see Connect to a REST API.
Many organizations provide access to data via a REST
API. (REST stands for
REpresentational State Transfer, and it is an architectural pattern for providing standards between computer systems.) Commonly, REST can structure data into any machine-readable format (e.g. CSV, XML, YAML, etc.), but usually JSON is preferred.
CData ADO.Net Provider for REST is a comprehensive guide about the data provider.