Creating REST URIs to view records
You can create REST URIs to view records in your user database by linking directly to the records. The REST URI that you create to view a record opens the record faster than the REST URI that you create to find a record. The reason is that when you create a REST URI template to view a record, you must specify the record type, which narrows the search scope.
About this task
To create a REST URI to view a record:
Procedure
Example
Example
The following REST URI template to
view a record was created by using the New REST URI wizard. In this
example, ALMActivity
was selected as the value for Record
Type when creating the REST URI.
http://CQWebServerHost/cqweb/restapi/YourConnection/YourUserDB/RECORD/{{recordId}}?format=HTML&recordType=ALMActivity&loginId={{loginid}}&password={{password}}
The
variables and template placeholders have the following meanings:
- CQWebServerHost
- Web address of your HCL Compass Web server host. This value is defined when the REST URI template is created.
- YourConnection
- Your HCL Compass connection. This value is defined when the REST URI template is created.
- YourUserDB
- Your HCL Compass user database. This value is defined when the REST URI template is created.
- {{recordId}}
- Placeholder for the record ID to which you want to link.
- format
- The default format for the resource request is
HTML
. You can change the format toXML
orATOM
, if desired. - {{loginid}}
- Replace this placeholder with your logon ID.
- {{password}}
- Replace this placeholder with your password.