frames.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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="json">
  71. <parameter name="value" mimetype="application/json"/>
  72. </message>
  73. <message name="string"> <!--{{{-->
  74. <parameter name="value" type="string"/>
  75. </message> <!--}}}-->
  76. <resource>
  77. <get out="ui"/>
  78. <resource relative="getConfigs">
  79. <get out="ui"/>
  80. </resource>
  81. <resource>
  82. <get out="ui"/>
  83. <!-- create new Frame -->
  84. <post in='input'/>
  85. <!-- Set Frame Data with callback -->
  86. <put in='wframe' out="callback"/>
  87. <!-- Set Frame Data without callback -->
  88. <put in='sframe'/>
  89. <post in='deleteframe'/>
  90. <delete in='opa'/>
  91. <delete in='opb'/>
  92. <resource relative='sse'>
  93. <sse/>
  94. </resource>
  95. <resource relative="languages">
  96. <get out="json"/>
  97. <post in='lang'/>
  98. </resource>
  99. <resource relative="style.url">
  100. <get out="url"/>
  101. </resource>
  102. <resource relative="cpeeinstance.url">
  103. <get out="url"/>
  104. </resource>
  105. <resource relative="info.json">
  106. <get out="json"/>
  107. </resource>
  108. <resource relative="frames.json">
  109. <get out="json"/>
  110. </resource>
  111. <resource relative="dataelements.json">
  112. <get out="json"/>
  113. <post />
  114. </resource>
  115. <resource relative="test">
  116. <put in="string"/>
  117. </resource>
  118. <resource relative='handler'>
  119. <post />
  120. <resource relative='sse'>
  121. <sse/>
  122. </resource>
  123. </resource>
  124. </resource>
  125. </resource>
  126. </description>