Read all Mapping Master Data
Retrieves the master data of a mapping for the specified object ID
With this service method, you retrieve the master data (that is, the mandatory ID as well as the non-mandatory name and description) of the mapping objects that belong to the specified IDs. As input parameter, you may provide both sensor type IDs as well as thing type IDs.
Request
URI: /v1/Mappings/MasterData
HTTP Method: GET
Permissions:
<thing>.r
<thingconf!t5>.r
<thing!t5>.r
<thing!t5>.conf.r
Request Headers
| Header | Required | Values |
|---|---|---|
| Authorization | Yes | JWT (JSON Web Token) |
Request Parameters
| Parameter | Required | Data Type | Description | Parameter Type |
|---|---|---|---|---|
| thingTypeId | No | string | ID of the thing type for which you want to retrieve mappings. | Query string |
| sensorTypeId | No | string | ID of the sensor type for which you want to retrieve mappings. | Query string |
| $skip | No | integer | Number of the first n records to be excluded from the result set | Query string |
| $top | No | integer | Number of records to include in the result set | Query string |
Request Example
GET /v1/Mappings/MasterData?thingTypeId=sap-dev.demoPackage:ThingType1
Response
Response Status and Error Codes
| Code | Description |
|---|---|
| 200 | Master data retrieved successfully |
| 400 |
Bad request. Request could not be processed due to invalid or missing parameters |
Response Example
[
{
"id" : "6fc8f297-431a-43f7-a42e-dbf584c76594",
"name" : "Default Mapping",
"description" : {
"en": "Default mapping for thing type"
}
"thingTypeId" : "sap-dev.demoPackage:ThingType1",
"sensorTypeIds" : ["SensorType1", "SensorType2"],
"etag": 1
}
]
In the above example, the method returns exactly one mapping object where the properties of the thing type passed as input parameter are mapped to the capabilities of two different sensor types.