對應 JSON 結構描述
以下說明用來將一個 URN 對應至另一個 URN 的 IRS 對應之 JSON 結構描述。
<irs-urn-mapping>:
{
"id": <id>,
"key": <urn>,
"value": <urn>,
}
<id>: integer
<urn>: <thingmark-urn> | <thing-urn> | <template-urn>
<thingmark-urn>: urn:vuforia:vumark:<thingmark-code>
<thing-urn>: urn:thingworx:thing:<thing-name>[@<hostname>]
<template-urn>: urn:thingworx:template:<template-name>[@<hostname>]
<thingmark-code>: <domain-id>:<instance-id>
<domain-id>: integer
<instance-id>: integer
<thing-name>: string (name of Thing in ThingWorx server)
<template-name>: string (name of ThingTemplate in ThingWorx server)
<hostname>: string (valid FQDN of machine hosting ThingWorx server)
|
id 屬性不可變,且在建立對應時由 Experience Service 指派。因此,當指定用來建立或修改對應的請求之主體時,JSON 物件會省略 id 屬性。
|
以下範例為符合此結構描述的 URN 對應 JSON 物件:
{
"id": 1512,
"key": "urn:vuforia:vumark:2:101",
"value": "urn:thingworx:thing:Quadcopter101@es.example.com"
}