Changes between Version 7 and Version 8 of RestApi
- Timestamp:
- 03.09.2011 19:24:13 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RestApi
v7 v8 52 52 }}} 53 53 54 For details about the topic dataformat see DataFormat#Topic.54 For details about the topic format see DataFormat#Topic. 55 55 56 56 ==== Example 2: Getting a topic ''without'' its `composite` value ==== … … 84 84 POST /core/topic 85 85 86 <the topic> 87 }}} 86 <the topic to create> 87 }}} 88 89 For details about the topic format see DataFormat#Topic. 90 91 For a create operation not all properties are involved: 92 93 ||= Property =||= Mandatory / Optional =|| 94 || `id` || Do //not// provide an ID. The ID will be system-generated. || 95 || `uri` || Optional. Default URI is an empty string. || 96 || `type_uri` || Mandatory. || 97 || `value` || For a simple topic: Optional. Default value is an empty string. You can change the value later on though an update operation.\\\\For a complex topic: Do //not// specify a value. The value will be system-generated. || 98 || `composite` || For a complex topic: Optional. Default composite is an empty object. You can change the composite later on though an update operation.\\\\For a simple topic: Do //not// specify a composite. || 88 99 89 100 ==== Example 1: Creating a simple topic ==== … … 96 107 | jsonpretty 97 108 }}} 98 99 For details about the topic data format see DataFormat#Topic.100 109 101 110 Response: … … 297 306 }}} 298 307 299 For details about the topic type dataformat see DataFormat#TopicType.308 For details about the topic type format see DataFormat#TopicType. 300 309 301 310 == Association Types ==