REST Data Sources

Representational State Transfer (REST) defines a set of architectural principles by which you can design Web services that focus on systems’ resources and how these resource states are addressed and transferred over HTTP by client applications written in different languages.

The REST implementation in TDV establishes a one-to-one mapping between these basic operations and HTTP methods.

Operation

HTTP/REST

SQL Equivalent

Create a resource on the server

POST

INSERT

Retrieve a resource

GET

SELECT

Update or change a resource state

PUT

UPDATE

Remove or delete a resource

DELETE

DELETE

When you define a REST data source, you define its URL connection information and its operations which include the input and output parameters. After definition, the REST data source in Studio contains a Web Service Operation for each defined REST operation. The Web Service Operations in Studio are similar to a stored procedure and can be used in the same way. Refer the User Guide, Chapter Procedures for more information.

This section contains the following topics:

Adding a REST Data Source
Setting a Value for NULL JSON Values in REST Responses
Passing a Full XML Document in a POST Request to a REST Service
Using an HTTP Header Parameter to Specify the Content Type
Using Design By Example to Infer Parameter Data Types
Cross-Origin Resource Sharing (CORS)