frames.xml 4.3 KB

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