| 240 | === Getting a topic type === |
| 241 | |
| 242 | {{{ |
| 243 | GET /core/topictype/<Topic Type URI> |
| 244 | }}} |
| 245 | |
| 246 | ==== Example ==== |
| 247 | |
| 248 | {{{ |
| 249 | curl localhost:8080/core/topictype/dm4.webbrowser.webpage -i | jsonpretty |
| 250 | }}} |
| 251 | |
| 252 | Response: |
| 253 | |
| 254 | {{{ |
| 255 | HTTP/1.1 200 OK |
| 256 | Content-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 | |
| 299 | For details about the topic type data format see DataFormat#TopicType. |
| 300 | |