Get Application Settings (Property)

Get the specific property value for a property from the application settings.

Syntax

Perform an HTTP GET request at the following URL:

http://<host:port>/[public/]odata/applications/{v1|latest}/{appid}/Connections(‘{registrationID}’)/<property-name>

Parameters

  • appid – The application ID that uniquely identifies the application.
  • registrationID – The registration ID of the application instance that is interacting with the service.
  • property-name – The property-name can be appended to the URL to retrieve the value of a specific property.

Returns

If successful, returns a 200 OK status code and an HTTP response body with the application settings.

Examples

  • Get the DeviceType property – HTTP request:
    GET /odata/applications/v1/com.sap.myapp/Connections('b6d50e93-bcaa-439d-9741-660a3cb56771')/DeviceType HTTP/1.1
    Cookie: X-SMP-APPCID=b6d50e93-bcaa-439d-9741-660a3cb56771; X-SMP-SESSID=97ts80gwhxkc  
    Host: smpserver:8080
    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-SMP-APPCID=<XXXX>
    DataServiceVersion: 1.0
    Date: Mon, 13 Aug 2012 23:00:27 GMT
    Transfer-Encoding: chunked
    

    HTTP response body:

    <?xml version='1.0' encoding='utf-8'?>
    <d:DeviceType>iPhone</d:DeviceType>