Changes between Version 7 and Version 8 of RestApi


Ignore:
Timestamp:
03.09.2011 19:24:13 (9 years ago)
Author:
jri
Comment:

Details about topic creation

Legend:

Unmodified
Added
Removed
Modified
  • RestApi

    v7 v8  
    5252}}} 
    5353 
    54 For details about the topic data format see DataFormat#Topic. 
     54For details about the topic format see DataFormat#Topic. 
    5555 
    5656==== Example 2: Getting a topic ''without'' its `composite` value ==== 
     
    8484POST /core/topic 
    8585 
    86 <the topic> 
    87 }}} 
     86<the topic to create> 
     87}}} 
     88 
     89For details about the topic format see DataFormat#Topic. 
     90 
     91For 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. || 
    8899 
    89100==== Example 1: Creating a simple topic ==== 
     
    96107| jsonpretty 
    97108}}} 
    98  
    99 For details about the topic data format see DataFormat#Topic. 
    100109 
    101110Response: 
     
    297306}}} 
    298307 
    299 For details about the topic type data format see DataFormat#TopicType. 
     308For details about the topic type format see DataFormat#TopicType. 
    300309 
    301310== Association Types ==