skip to main content
Using the Driver : Configuring the Relational Map : Using the Input REST File Method
  

Try DataDirect Drivers Now

Using the Input REST File Method

The input REST file method allows you to access data from one or more endpoints, define POST requests, and configure additional customizations supported by the input REST file.
To configure the driver to using the input REST file method:
*Set the REST Config File (RestConfigFile) option to specify the name and location of the input REST file used to define your endpoints. For example, C:/path/to/myrest.rest.
*Optionally, if you want to store the relational map in a resolved REST file, set the Create Map (CreateMap) option to either of the following values:
*1 (ForceNew): The driver deletes the current REST file, internal configuration files, and relational map in the location specified by the Schema Map (SchemaMap) option and creates a new set at the same location.
*2 (NotExist): The driver uses the current REST file, internal files, and relational map in the location specified by the Schema Map option. If the files do not exist, the driver creates them.
Note that if no value is specified for Create Map, the driver defaults to using internal memory to store the map (CreateMap=3).
*Optionally, if you are storing the relational map to a REST file (CreateMap=1 | 2) , you can set the Schema Map option to specify the location to generation the REST and internal driver files. The default location depends on your platform:
For Windows:
<application_data_folder>\Local\Progress\DataDirect\AutoREST_Schema\
For Linux:
~/progress/datadirect/AutoREST_Schema/
*Optionally, set the values for any required authentication options. See "Authentication" for details.
For example, the following examples demonstrate the minimum connection options to configure the input REST file method:
Using a connection string:
DRIVER=DataDirect 8.0 Autonomous REST Connector;RestConfigFile=C:/path/to/myrest.rest;
Using the odbc.ini file:
Driver=ODBCHOME/lib/ivautorestxx.so
RestConfigFile=~/path/to/myrest.rest