Accessing the OData Service

Returns the available data flows for the specified query.

Request

GET <slURL>/queries/{queryId}/data.svc/

Where:

  • {queryId} is the query statement identifier retrieved from the list of queries
Response

Response type: application/xml or application/json

The response is an Atom feed or a collection of JSON objects.

Caution The call returns an error message if at least one context or parameter has not been answered.

Example

One Flow

GET <slURL>/queries/6089913651317040548/data.svc

Response type: application/xml

<service xml:base="http://w2k8x64sp2:6405/biprws/sl/v1/queries/6089913651317040548/data.svc"
    xmlns:app="http://www.w3.org/2007/app"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <workspace>
        <atom:title>Default</atom:title>
        <collection href="Flows0">
            <atom:title>Flows0</atom:title>
	   </collection>
    </workspace>
</service>

Response type: application/json

{
    "d": {
        "EntitySets": [
            " Flows0"
        ]
    }
}

Example

Multiple Flows

GET <slURL>/queries/6089913651317040730/data.svc

Response type: application/xml

<service xml:base="http://w2k8x64sp2:6405/biprws/sl/v1/queries/6089913651317040730/data.svc/"
    xmlns="http://www.w3.org/2007/app"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <workspace>
        <atom:title>Default</atom:title>
        <collection href="Flows0">
            <atom:title>Flows0</atom:title>
        </collection>
        <collection href="Flows1">
            <atom:title>Flows1</atom:title>
        </collection>
    </workspace>
</service>

Response type: application/json

{
    "d": {
        "EntitySets": [
            " Flows0"
            " Flows1"
        ]
    }
}