Skip to content

Retrieving Application Connection Metadata

Get the metadata document, which includes the metadata for the application connection settings and proxy endpoints.

Usage

Metadata documents are based on the OData standard and are required to implement application connection services.

Request

URL: https://<mobile services host>/odata/applications/<service version>/<appid>/$metadata

HTTP Method: GET

Request Parameters

Parameter Type Description
<appid> Mandatory ID that uniquely identifies an application
<service version> Mandatory v1 onwards

Request Header Example

GET /odata/applications/v1/com.sap.myapp/$metadata HTTP/1.1
Host: smpserver:8080
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.3 (java 1.5)
Authorization: Basic REVWMDAwMTppbml0aWFs

Response

Code Description
200 OK Returns service document

Response Body Example

<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx"
    xmlns:smp="http://www.sap.com/smp/odata"><edmx:DataServices m:DataServiceVersion="2.0"
    xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<Schema Namespace="applications" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
<EntityType Name="Endpoint">
 <Key>
 <PropertyRef Name="EndpointName"></PropertyRef></Key>
 </EntityType>
<EntityType Name="Connection">
 <Key>
 <PropertyRef Name="ApplicationConnectionId"></PropertyRef></Key>
 <Property Name="ETag" Type="Edm.String" Nullable="false" sup:ReadOnly="true"></Property>
 <Property Name="ApplicationConnectionId" Type="Edm.String" Nullable="false" sup:ReadOnly="true"></Property>
 <Property Name="AndroidGcmPushEnabled" Type="Edm.Boolean" Nullable="false" sup:ReadOnly="false"></Property>
 <Property Name="AndroidGcmRegistrationId" Type="Edm.String" Nullable="true" sup:ReadOnly="false"></Property>
 <Property Name="AndroidGcmSenderId" Type="Edm.String" Nullable="true" sup:ReadOnly="true"></Property>
 </EntityType>
<EntityContainer Name="Container" m:IsDefaultEntityContainer="true">
<EntitySet Name="Connections" EntityType="applications.Connection">
</EntitySet>
</EntityContainer>
</Schema>
</edmx:DataServices>
</edmx:Edmx>

Last update: August 12, 2020