Changes between Version 6 and Version 7 of RestApi


Ignore:
Timestamp:
03.09.2011 02:10:29 (9 years ago)
Author:
jri
Comment:

Getting a topic type

Legend:

Unmodified
Added
Removed
Modified
  • RestApi

    v6 v7  
    5252}}} 
    5353 
    54 For details about the topic data format see DataFormat#topic. 
     54For details about the topic data format see DataFormat#Topic. 
    5555 
    5656==== Example 2: Getting a topic ''without'' its `composite` value ==== 
     
    9797}}} 
    9898 
    99 For details about the topic data format see DataFormat#topic. 
     99For details about the topic data format see DataFormat#Topic. 
    100100 
    101101Response: 
     
    238238}}} 
    239239 
     240=== Getting a topic type === 
     241 
     242{{{ 
     243GET /core/topictype/<Topic Type URI> 
     244}}} 
     245 
     246==== Example ==== 
     247 
     248{{{ 
     249curl localhost:8080/core/topictype/dm4.webbrowser.webpage -i | jsonpretty 
     250}}} 
     251 
     252Response: 
     253 
     254{{{ 
     255HTTP/1.1 200 OK 
     256Content-Type: application/json 
     257 
     258{ 
     259  "id": 1008, 
     260  "uri": "dm4.webbrowser.webpage", 
     261  "type_uri": "dm4.core.topic_type", 
     262  "value": "Webpage", 
     263  "composite": { 
     264  }, 
     265  "data_type_uri": "dm4.core.composite", 
     266  "index_mode_uris": [ 
     267 
     268  ], 
     269  "assoc_defs": [ 
     270    { 
     271      "id": 1013, 
     272      "uri": "dm4.webbrowser.url", 
     273      "assoc_type_uri": "dm4.core.aggregation_def", 
     274      "whole_topic_type_uri": "dm4.webbrowser.webpage", 
     275      "whole_role_type_uri": "dm4.core.whole", 
     276      "whole_cardinality_uri": "dm4.core.one", 
     277      "part_topic_type_uri": "dm4.webbrowser.url", 
     278      "part_role_type_uri": "dm4.core.part", 
     279      "part_cardinality_uri": "dm4.core.one", 
     280      "view_config_topics": [ 
     281 
     282      ] 
     283    } 
     284  ], 
     285  "view_config_topics": [ 
     286    { 
     287      "id": 1025, 
     288      "uri": "", 
     289      "type_uri": "dm4.webclient.view_config", 
     290      "value": "WebpageRenderer", 
     291      "composite": { 
     292        "dm4.webclient.js_page_renderer_class": "WebpageRenderer" 
     293      } 
     294    } 
     295  ] 
     296} 
     297}}} 
     298 
     299For details about the topic type data format see DataFormat#TopicType. 
     300 
    240301== Association Types == 
    241302