close
Warning:
Can't synchronize with repository "(default)" (/usr/local/svn/deb2-client does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
Jan 28, 2009, 3:23:50 PM (15 years ago)
- Author:
-
Adam
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v26
|
v27
|
|
67 | 67 | == Display entry == |
68 | 68 | |
69 | | '''Request:''' ''servername''/''dictionary_code''?action=runQuery&query=''entry_id''&outtype=''output_type''[&arg=''argument''][&nojson=1][&default=1] |
| 69 | '''Request:''' ''servername''/''dictionary_code''?action=runQuery&query=''entry_id''&outtype=''output_type''[&arg=''argument''][&nojson=1][&default=1][&expand_rels=1] |
70 | 70 | |
71 | 71 | entry_id:: |
… |
… |
|
84 | 84 | default:: |
85 | 85 | optional argument for html output type - with default=1 HTML is displayed with default styles, otherwise style set in client is used |
| 86 | expand_rels:: |
| 87 | optional argument for editor output type - with expand_rels=1 more details about ILR are included (definition, literals) |
86 | 88 | |
87 | 89 | '''Response:''' by default JSON encoded, depends on output type |
… |
… |
|
102 | 104 | == Display subtree of an entry == |
103 | 105 | |
104 | | '''Request:''' ''servername''/''dictionary_code''?action=subtree&query=''entry_id''&arg=''argument''&rel_type=''relation_type'' |
| 106 | '''Request:''' ''servername''/''dictionary_code''?action=subtree&query=''entry_id''&arg=''argument''[&rel_type=''relation_type''][&details=''details''] |
105 | 107 | |
106 | 108 | entry_id:: |
… |
… |
|
110 | 112 | rel_type:: |
111 | 113 | optional parameter, used to limit response only to relations of specified type |
| 114 | details:: |
| 115 | optional parameter, for details=1 add g_syn, definition, for details=2 add g_syn, definition, literal array |
112 | 116 | |
113 | | '''Response:''' JSON encoded array with tree structure (same as for basic tree in display, plus relation type) - only direct descendants of entry are returned |
| 117 | '''Response:''' JSON encoded array with tree structure (same as for basic tree in display) - only direct descendants of entry are returned |
114 | 118 | |
115 | 119 | == Display full subtree of an entry == |
116 | 120 | |
117 | | '''Request:''' ''servername''/''dictionary_code''?action=fullsubtree&query=''entry_id''&arg=''argument'' |
| 121 | '''Request:''' ''servername''/''dictionary_code''?action=fullsubtree&query=''entry_id''&arg=''argument''[&rel_type=''relation_type''][&details=''details''] |
118 | 122 | |
119 | 123 | entry_id:: |
… |
… |
|
121 | 125 | arg:: |
122 | 126 | specifies tree direction - ILR for normal tree, RILR for reversed tree |
| 127 | rel_type:: |
| 128 | optional parameter, used to limit response only to relations of specified type |
| 129 | details:: |
| 130 | optional parameter, for details=1 add g_syn, definition, for details=2 add g_syn, definition, literal array |
123 | 131 | |
124 | 132 | '''Response:''' JSON encoded array with tree structure (same as for basic tree in display) - display all descendants of entry |