frames.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <!--
  2. This file is part of centurio.work/wiz.
  3. centurio.work/wiz is free software: you can redistribute it and/or modify it
  4. under the terms of the GNU General Public License as published by the Free
  5. Software Foundation, either version 3 of the License, or (at your option) any
  6. later version.
  7. centurio.work/wiz is distributed in the hope that it will be useful, but
  8. WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  9. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  10. more details.
  11. You should have received a copy of the GNU General Public License along with
  12. centurio.work/wiz (file LICENSE in the main directory). If not, see
  13. <http://www.gnu.org/licenses/>.
  14. -->
  15. <description xmlns="http://riddl.org/ns/description/1.0" xmlns:ann="http://riddl.org/ns/annotation/1.0" xmlns:xi="http://www.w3.org/2001/XInclude" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  16. <message name="input">
  17. <parameter name="style_url" type="string"/>
  18. <parameter name="document_url" type="string"/>
  19. <parameter name="x_amount" type="string"/>
  20. <parameter name="y_amount" type="string"/>
  21. <parameter name="lang" type="string"/>
  22. <parameter name="document_name" type="string"/>
  23. </message>
  24. <message name="sframe">
  25. <parameter name="type" fixed="set"/>
  26. <parameter name="lx" type="string"/>
  27. <parameter name="ly" type="nonNegativeInteger"/>
  28. <parameter name="x_amount" type="nonNegativeInteger"/>
  29. <parameter name="y_amount" type="nonNegativeInteger"/>
  30. <parameter name="button" type="string"/>
  31. <parameter name="style" type="string"/>
  32. <parameter name="urls" type="string"/>
  33. <parameter name="default" type="string"/>
  34. </message>
  35. <message name="wframe">
  36. <parameter name="type" fixed="wait"/>
  37. <parameter name="lx" type="nonNegativeInteger"/>
  38. <parameter name="ly" type="nonNegativeInteger"/>
  39. <parameter name="x_amount" type="nonNegativeInteger"/>
  40. <parameter name="y_amount" type="nonNegativeInteger"/>
  41. <parameter name="button" type="string"/>
  42. <parameter name="style" type="string"/>
  43. <parameter name="urls" type="string"/>
  44. <parameter name="default" type="string"/>
  45. </message>
  46. <message name="deleteframe">
  47. <parameter name="lx" type="string"/>
  48. <parameter name="ly" type="string"/>
  49. </message>
  50. <message name="ui">
  51. <parameter name="ui" mimetype="text/html"/>
  52. </message>
  53. <message name="callback">
  54. <header name="CPEE-CALLBACK" type="boolean"/>
  55. </message>
  56. <message name="url">
  57. <parameter name="url" mimetype="text/plain"/>
  58. </message>
  59. <message name="lang">
  60. <parameter name="lang" type="string"/>
  61. </message>
  62. <message name="opa">
  63. <parameter name="op" fixed="error"/>
  64. <parameter name="reason" type="string"/>
  65. </message>
  66. <message name="opb">
  67. <parameter name="op" fixed="result"/>
  68. <parameter name="value" mimetype="application/json"/>
  69. </message>
  70. <message name="opc">
  71. <parameter name="op" type="string"/>
  72. </message>
  73. <message name="json">
  74. <parameter name="value" mimetype="application/json"/>
  75. </message>
  76. <message name="string"> <!--{{{-->
  77. <parameter name="value" type="string"/>
  78. </message> <!--}}}-->
  79. <resource>
  80. <get out="ui"/>
  81. <resource relative="getConfigs">
  82. <get out="ui"/>
  83. </resource>
  84. <resource>
  85. <get out="ui"/>
  86. <!-- create new Frame -->
  87. <post in='input'/>
  88. <!-- Set Frame Data with callback -->
  89. <put in='wframe' out="callback"/>
  90. <!-- Set Frame Data without callback -->
  91. <put in='sframe'/>
  92. <post in='deleteframe'/>
  93. <delete in='opa'/>
  94. <delete in='opb'/>
  95. <delete in='opc'/>
  96. <resource relative='sse'>
  97. <sse/>
  98. </resource>
  99. <resource relative="languages">
  100. <get out="json"/>
  101. <post in='lang'/>
  102. </resource>
  103. <resource relative="style.url">
  104. <get out="url"/>
  105. </resource>
  106. <resource relative="cpeeinstance.url">
  107. <get out="url"/>
  108. </resource>
  109. <resource relative="info.json">
  110. <get out="json"/>
  111. </resource>
  112. <resource relative="frames.json">
  113. <get out="json"/>
  114. </resource>
  115. <resource relative="dataelements.json">
  116. <get out="json"/>
  117. <post />
  118. </resource>
  119. <resource relative="test">
  120. <put in="string"/>
  121. </resource>
  122. <resource relative='handler'>
  123. <post />
  124. <resource relative='sse'>
  125. <sse/>
  126. </resource>
  127. </resource>
  128. </resource>
  129. </resource>
  130. </description>