AR application configuration
The following steps demonstrate how to configure AR application variables in OIC, which affect the JSON payload that is returned in API calls to the endpoint.
Procedure
- From the Integrations page, click the hamburger menu associated with AR Application Configuration and click Edit. The AR Application Configuration page displays.
- Click on
the Map to GetARConfigs node to expand
the section with the buttons. Click the pencil icon to edit the payload
and expand the nodes on the right side so that all variables are visible.
Note that OIC has taken the JSON structure and converted it into a tree structure that can be navigated and edited. In the case of our demo, we are hard-configuring variables that will be returned when an API call is made for the data, as opposed to calling another service to get data or transforming values. You must edit at least the contactId field so that creating an SR in the AR experience will work properly. Edit the other fields based on the requirements of your demo.
- Click the
contactId
text to open the variable editor.. - Click the text area modal window and update the field with the proper contact value per your demo.
- Click the Close button and save if prompted to do
so.
Follow the same steps to configure the device ID of the IoT object.
- Once your changes are made, click the Validate button at the top of the page. If the structure is valid, you will see a success message.
- Click the Close button to return to the Integration page.
- Click the Close button at the top of the page and save if prompted to do so.