81 | | === Get topics by type_uri === |
82 | | |
83 | | {{{ |
84 | | GET /core/topic/by_type/<type_uri> |
85 | | }}} |
86 | | |
87 | | ==== Example 1: Getting all topics of one type ==== |
88 | | |
89 | | |
90 | | Requesting all topics of type "Web Resource" / "dm4.webbrowser.web_resource". |
91 | | |
92 | | {{{ |
93 | | curl http://localhost:8080/core/topic/by_type/dm4.webbrowser.web_resource | jsonpretty |
94 | | }}} |
95 | | |
96 | | Response (as of deepamehta-4.0.5): |
97 | | |
98 | | {{{ |
99 | | HTTP/1.1 200 OK |
100 | | Content-Type: application/json |
101 | | |
102 | | { |
| 81 | === Get topics by type === |
| 82 | |
| 83 | {{{ |
| 84 | GET /core/topic/by_type/<Type URI>[?fetch_composite=true/false] |
| 85 | }}} |
| 86 | |
| 87 | The default for `fetch_composite` is `false`. |
| 88 | |
| 89 | ==== Example: Getting all "Web Resource" topics ''without'' their `composite` values ==== |
| 90 | |
| 91 | {{{ |
| 92 | curl localhost:8080/core/topic/by_type/dm4.webbrowser.web_resource | jsonpretty |
| 93 | }}} |
| 94 | |
| 95 | Response: |
| 96 | |
| 97 | {{{ |
| 98 | HTTP/1.1 200 OK |
| 99 | Content-Type: application/json |
| 100 | |
| 101 | { |
| 102 | "total_count" : 2, |