Metadata

Get the metadata document that includes the metadata for the application connection settings.

Syntax

Perform an HTTP GET request at the following URL:
http://domain:port/[public/]odata/applications/{v1|latest}/{appid}/$metadata

Parameters

  • appid – The application ID that uniquely identifies the application.

Returns

If successful, returns a 200 OK status code and a metadata document in the response body.

Examples

  • Get Metadata – HTTP request header:
    GET /odata/applications/v1/com.sap.myapp/$metadata HTTP/1.1
    Host: supserver:8000
    Connection: Keep-Alive
    User-Agent: Apache-HttpClient/4.1.3 (java 1.5)
    Authorization: Basic REVWMDAwMTppbml0aWFs

    HTTP response header:

    HTTP/1.1 200 OK
    Content-Type: application/xml;charset=utf-8
    Expires: Thu, 01 Jan 1970 00:00:00 GMT
    Set-Cookie: X-SUP-SESSID=97ts80gwhxkc;Path=/
    Set-Cookie: X-SUP-APPCID=b6d50e93-bcaa-439d-9741-660a3cb56771
    DataServiceVersion: 1.0
    Date: Tue, 14 Aug 2012 21:32:34 GMT
    Transfer-Encoding: chunked

    HTTP response body (metadata):

    <?xml version='1.0' encoding='utf-8'?>
    <edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx"
      xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
      xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
      xmlns:sup="http://www.sap.com/sup/odata">
      <edmx:DataServices m:DataServiceVersion="1.0">
        <Schema Namespace="applications" xmlns="http://schemas.microsoft.com/ado/2006/04/edm
          <EntityType Name="Connection">
            <Key>
              <PropertyRef Name="ApplicationConnectionId" />
            </Key>
            <Property Name="ETag" Type="Edm.String" Nullable="false" sup:ReadOnly="true"/>
            <Property Name="ApplicationConnectionId" Type="Edm.String" Nullable="false" sup:ReadOnly="true"/>
            <Property Name="AndroidGcmPushEnabled" Type="Edm.Boolean" Nullable="false" sup:ReadOnly="false" /> 
            <Property Name="AndroidGcmRegistrationId" Type="Edm.String" Nullable="true" sup:ReadOnly="false" /> 
            <Property Name="AndroidGcmSenderId" Type="Edm.String" Nullable="true" sup:ReadOnly="true" /> 
            <Property Name="ApnsPushEnable" Type="Edm.Boolean" Nullable="false" sup:ReadOnly="false" /> 
            <Property Name="ApnsAlerts" Type="Edm.Boolean" Nullable="false" sup:ReadOnly="false" /> 
            <Property Name="ApnsBadges" Type="Edm.Boolean" Nullable="false" sup:ReadOnly="false" /> 
            <Property Name="ApnsSounds" Type="Edm.Boolean" Nullable="false" sup:ReadOnly="false" /> 
            <Property Name="ApnsAlertMessage" Type="Edm.String" Nullable="true" sup:ReadOnly="true" /> 
            <Property Name="ApnsDeviceToken" Type="Edm.String" Nullable="true" sup:ReadOnly="false" /> 
            <Property Name="CustomizationBundleId" Type="Edm.String" Nullable="true" sup:ReadOnly="true" /> 
            <Property Name="ApplicationVersion" Type="Edm.String" Nullable="true" sup:ReadOnly="false" /> 
            <Property Name="ClientSdkVersion" Type="Edm.String" Nullable="true" sup:ReadOnly="false" /> 
            <Property Name="BlackberryPushEnabled" Type="Edm.Boolean" Nullable="false" sup:ReadOnly="false" /> 
            <Property Name="BlackberryDevicePin" Type="Edm.String" Nullable="true" sup:ReadOnly="false" /> 
            <Property Name="BlackberryBESListenerPort" Type="Edm.Int32" Nullable="false" sup:ReadOnly="false" /> 
            <Property Name="CapabilitiesPasswordPolicy" Type="Edm.Boolean" Nullable="false" sup:ReadOnly="false" /> 
            <Property Name="CustomCustom1" Type="Edm.String" Nullable="true" sup:ReadOnly="false" /> 
            <Property Name="CustomCustom2" Type="Edm.String" Nullable="true" sup:ReadOnly="false" /> 
            <Property Name="CustomCustom3" Type="Edm.String" Nullable="true" sup:ReadOnly="false" /> 
            <Property Name="CustomCustom4" Type="Edm.String" Nullable="true" sup:ReadOnly="false" /> 
            <Property Name="DeviceModel" Type="Edm.String" Nullable="true" sup:ReadOnly="false" /> 
            <Property Name="DeviceType" Type="Edm.String" Nullable="true" sup:ReadOnly="false" /> 
            <Property Name="DeviceSubType" Type="Edm.String" Nullable="true" sup:ReadOnly="false" /> 
            <Property Name="DevicePhoneNumber" Type="Edm.String" Nullable="true" sup:ReadOnly="false" /> 
            <Property Name="DeviceIMSI" Type="Edm.String" Nullable="true" sup:ReadOnly="false" /> 
            <Property Name="PasswordPolicyEnabled" Type="Edm.Boolean" Nullable="false" sup:ReadOnly="true" /> 
            <Property Name="PasswordPolicyDefaultPasswordAllowed" Type="Edm.Boolean" Nullable="false" sup:ReadOnly="true" /> 
            <Property Name="PasswordPolicyMinLength" Type="Edm.Int32" Nullable="false" sup:ReadOnly="true" /> 
            <Property Name="PasswordPolicyDigitRequired" Type="Edm.Boolean" Nullable="false" sup:ReadOnly="true" /> 
            <Property Name="PasswordPolicyUpperRequired" Type="Edm.Boolean" Nullable="false" sup:ReadOnly="true" /> 
            <Property Name="PasswordPolicyLowerRequired" Type="Edm.Boolean" Nullable="false" sup:ReadOnly="true" /> 
            <Property Name="PasswordPolicySpecialRequired" Type="Edm.Boolean" Nullable="false" sup:ReadOnly="true" /> 
            <Property Name="PasswordPolicyExpiresInNDays" Type="Edm.Int32" Nullable="false" sup:ReadOnly="true" /> 
            <Property Name="PasswordPolicyMinUniqueChars" Type="Edm.Int32" Nullable="false" sup:ReadOnly="true" /> 
            <Property Name="PasswordPolicyLockTimeout" Type="Edm.Int32" Nullable="false" sup:ReadOnly="true" /> 
            <Property Name="PasswordPolicyRetryLimit" Type="Edm.Int32" Nullable="false" sup:ReadOnly="true" /> 
            <Property Name="ProxyApplicationEndpoint" Type="Edm.String" Nullable="true" sup:ReadOnly="true" /> 
            <Property Name="ProxyPushEndpoint" Type="Edm.String" Nullable="true" sup:ReadOnly="true" /> 
          </EntityType>
          <EntityContainer Name="Container" m:IsDefaultEntityContainer="true">
            <EntitySet Name="Connections" EntityType="applications.Connection" />
          </EntityContainer>
        </Schema>
      </edmx:DataServices>
    </edmx:Edmx>