skip to main content
Using the driver : Configuring the relational map : Modifying the relational view : Adding/removing objects
  

Try DataDirect Drivers Now
Adding/removing objects
After you generate your initial relational map, you can add endpoints or remove objects at any time by editing the REST file. The following sections provide you with detailed instructions.

Adding endpoints

To add endpoints to your map, add a comma-separated entry for each endpoint using the following format. This process is similar to the one used to create the input REST file.
"<table_name1>":"<endpoint1>",
For example, the following demonstrates adding an endpoint for new_table table to a REST file containing a resolved entry my_table table.
{
"new_table":"http://example.com/countries/",
"my_table":{
"#path":[
"https://example.com/employees"
],
"employeeID":"VarChar(32),#key",
"position_title":"VarChar(46)",
"start_year":"Integer",
}
}
The added table or tables will be resolved during the next connection. See "Modifying the REST file" for details on regenerating the REST file to include your changes.

Removing objects from the relational view

To remove an object, delete the resolved table entry or object from the REST file. See "Modifying the REST file" for details on regenerating the REST file to include your changes.