skip to main content
Querying with OData Version 2 : Structure of requests for OData Version 2 : Service URI and resource path
  

Try Now

Service URI and resource path

The service root and resource path of a request define the location of the Hybrid Data Pipeline service and the name of the OData-enabled data source definition (case insensitive).The OData tab of your data source definition provides this value in the OData Access URI field.
In the URL examples in this table,
<myserver> is the DNS name of the machine on which the Hybrid Data Pipeline server is installed.
<myds> is the name of your Hybrid Data Pipeline data source.
A request with just the Service URI and resource path returns a list of available entities, the $metadata parameter returns metadata on those entities, and an address that includes the plural entity name and a primary key value returns a single entity, as shown in the following examples:
Response contains:
Operation
URI
The names of all entities in the schema
GET
<myserver>:<port>/api/odata/<myds>
Example: https://mustng02:8443/api/odata/myds
The names, properties, data types, and relationships for all entities in the schema
GET
<myserver>:<port>/api/odata/<myds>/$metadata
Example: https://mustng02:8443/api/odata/myds/$metadata
A single entity
GET
<myserver>:<port>/api/odata/<myds>/<entity_plural_name>('<primary_key_value>
Example: https://mustng02:8443/api/odata/myds/ACCOUNTS('123')
A single entity from a particular data source in a data source group
GET
<myserver>:<port>/api/odata/<myds>/<ds_prefix>_<entity_plural_name>('<primary_key_value>
Example: https://mustng02:8443/api/odata/myds/east_ACCOUNTS('123')