Skip to content

Reading Destinations

Get Proxy Endpoints

Get all proxy endpoints for the application connection.

Request

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

HTTP Method: GET

Request Parameters

Parameter Type Description
<appid> Mandatory ID that uniquely identifies an application
<service version> Mandatory Version 1 and later

Request Header Example

GET /odata/applications/v1/com.sap.myapp/Endpoints HTTP/1.1
Host: smpserver:8080
X-SMP-APPCID=9dffe5e9-5768-47a6-8220-144a2e0c751d

Response

Code Description
200 OK Returns service document

Get Proxy Endpoint by Endpoint Name

Get a specific endpoint by specifying the endpoint name.

Request

URL: https://<mobile services host>/odata/applications/<service version>/<appid>/Endpoints(‘<endpoint>’

HTTP Method: GET

Request Parameters

Parameter Type Description
<appid> Mandatory ID that uniquely identifies an application
<endpoint> Mandatory The proxy endpoint name
<service version> Mandatory Version 1 and later

Request Header Example

GET /odata/applications/v1/com.sap.myapp/Endpoints('endpoint1') HTTP/1.1
Host: smpserver:8080
X-SMP-APPCID=9dffe5e9-5768-47a6-8220-144a2e0c751d

Response

Code Description
404 - not found Client tries to retrieve an endpoint that does not exist
400 - bad request Client tries to fetch invalid property name
200 OK OData response for endpoint-related information, which contains a remote URL and endpoint names and verifies whether anonymous access is allowed or not

Last update: January 25, 2022