Getting the OData Flow Metadata

Usage

Gets the metadata used to build the query results that the OData service exposes.

Request

GET /queries/<queryID>/data.svc/$metadata

Response

Response type: application/xml

The response that contains the schema has an EDMX format. The Id property does not map any object. It provides the current row number.

Example

Query with Multiple Flows

GET /queries/6089913651317040730/data.svc/$metadata

<?xml version="1.0"?>
<edmx:Edmx Version="1.0"
    xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx">
    <edmx:DataServices m:DataServiceVersion="1.0"
        xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
        xmlns:sap="http://www.sap.com/Protocols/SAPData">
        <Schema Namespace="Flows"
            xmlns="http://schemas.microsoft.com/ado/2008/09/edm" sap:isPartial="false">
            <EntityType Name="Flow0">
                <Key>
                    <PropertyRef Name="Id"></PropertyRef>
                </Key>
                <Property Name="Id" Type="Edm.Int32" Nullable="false"></Property>
                <Property Name="City" Type="Edm.String" Nullable="false" sap:label="City" 
                    sap:objectKey="DP0.DO8" sap:qualification="DIMENSION"></Property>
                <Property Name="Customer" Type="Edm.String" Nullable="false" sap:label="Customer" 
                    sap:objectKey="DP0.DO2" sap:qualification="DIMENSION"></Property>
            </EntityType>
            <EntityType Name="Flow1">
                <Key>
                    <PropertyRef Name="Id">
                    </PropertyRef>
                </Key>
                <Property Name="Id" Type="Edm.Int32" Nullable="false"></Property>
                <Property Name="StockLevel" Type="Edm.Double" Nullable="false" sap:label="Stock Level" 
                    sap:objectKey="DP0.DO5c" sap:qualification="MEASURE" 
                    sap:projectionFunction="None"></Property>
            </EntityType>
            <EntityContainer Name="Flows" m:IsDefaultEntityContainer="true">
                <EntitySet Name="Flows0" EntityType="Flows.Flow0">
                </EntitySet>
                <EntitySet Name="Flows1" EntityType="Flows.Flow1">
                </EntitySet>
            </EntityContainer>
        </Schema>
    </edmx:DataServices>
</edmx:Edmx>