frames.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. </message>
  23. <message name="sframe">
  24. <parameter name="type" fixed="set"/>
  25. <parameter name="lx" type="string"/>
  26. <parameter name="ly" type="nonNegativeInteger"/>
  27. <parameter name="x_amount" type="nonNegativeInteger"/>
  28. <parameter name="y_amount" type="nonNegativeInteger"/>
  29. <parameter name="button" type="string"/>
  30. <parameter name="style" type="string"/>
  31. <parameter name="urls" type="string"/>
  32. <parameter name="default" type="string"/>
  33. </message>
  34. <message name="wframe">
  35. <parameter name="type" fixed="wait"/>
  36. <parameter name="lx" type="nonNegativeInteger"/>
  37. <parameter name="ly" type="nonNegativeInteger"/>
  38. <parameter name="x_amount" type="nonNegativeInteger"/>
  39. <parameter name="y_amount" type="nonNegativeInteger"/>
  40. <parameter name="button" type="string"/>
  41. <parameter name="style" type="string"/>
  42. <parameter name="urls" type="string"/>
  43. <parameter name="default" type="string"/>
  44. </message>
  45. <message name="deleteframe">
  46. <parameter name="lx" type="string"/>
  47. <parameter name="ly" type="string"/>
  48. </message>
  49. <message name="ui">
  50. <parameter name="ui" mimetype="text/html"/>
  51. </message>
  52. <message name="callback">
  53. <header name="CPEE-CALLBACK" type="boolean"/>
  54. </message>
  55. <message name="url">
  56. <parameter name="url" mimetype="text/plain"/>
  57. </message>
  58. <message name="lang">
  59. <parameter name="lang" type="string"/>
  60. </message>
  61. <message name="opa">
  62. <parameter name="op" fixed="error"/>
  63. <parameter name="reason" type="string"/>
  64. </message>
  65. <message name="opb">
  66. <parameter name="op" fixed="result"/>
  67. <parameter name="value" mimetype="application/json"/>
  68. </message>
  69. <message name="json">
  70. <parameter name="value" mimetype="application/json"/>
  71. </message>
  72. <message name="string"> <!--{{{-->
  73. <parameter name="value" type="string"/>
  74. </message> <!--}}}-->
  75. <resource>
  76. <resource>
  77. <get out="ui"/>
  78. <!-- create new Frame -->
  79. <post in='input'/>
  80. <!-- Set Frame Data with callback -->
  81. <put in='wframe' out="callback"/>
  82. <!-- Set Frame Data without callback -->
  83. <put in='sframe'/>
  84. <post in='deleteframe'/>
  85. <delete in='opa'/>
  86. <delete in='opb'/>
  87. <resource relative='sse'>
  88. <sse/>
  89. </resource>
  90. <resource relative="languages">
  91. <get out="json"/>
  92. <post in='lang'/>
  93. </resource>
  94. <resource relative="style.url">
  95. <get out="url"/>
  96. </resource>
  97. <resource relative="cpeeinstance.url">
  98. <get out="url"/>
  99. </resource>
  100. <resource relative="info.json">
  101. <get out="json"/>
  102. </resource>
  103. <resource relative="frames.json">
  104. <get out="json"/>
  105. </resource>
  106. <resource relative="dataelements.json">
  107. <get out="json"/>
  108. <post />
  109. </resource>
  110. <resource relative="test">
  111. <put in="string"/>
  112. </resource>
  113. <resource relative='handler'>
  114. <post />
  115. <resource relative='sse'>
  116. <sse/>
  117. </resource>
  118. </resource>
  119. </resource>
  120. </resource>
  121. </description>