frames.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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="frame">
  24. <parameter name="lx" type="string"/>
  25. <parameter name="ly" type="string"/>
  26. <parameter name="x_amount" type="string"/>
  27. <parameter name="y_amount" type="string"/>
  28. <parameter name="url" type="string"/>
  29. <parameter name="button" type="string"/>
  30. </message>
  31. <message name="deleteframe">
  32. <parameter name="lx" type="string"/>
  33. <parameter name="ly" type="string"/>
  34. </message>
  35. <message name="ui">
  36. <parameter name="ui" mimetype="text/html"/>
  37. </message>
  38. <message name="callback">
  39. <header name="CPEE-CALLBACK" type="boolean"/>
  40. </message>
  41. <message name="url">
  42. <parameter name="url" mimetype="text/plain"/>
  43. </message>
  44. <message name="langs">
  45. <parameter name="langs" mimetype="*/xml">
  46. <xi:include href="rngs/langs.rng"/>
  47. </parameter>
  48. </message>
  49. <message name="lang">
  50. <parameter name="lang" type="string"/>
  51. </message>
  52. <message name="opa">
  53. <parameter name="op" fixed="error"/>
  54. <parameter name="reason" type="string"/>
  55. </message>
  56. <message name="opb">
  57. <parameter name="op" fixed="result"/>
  58. <parameter name="value" mimetype="application/json"/>
  59. </message>
  60. <message name="json">
  61. <parameter name="value" mimetype="application/json"/>
  62. </message>
  63. <resource>
  64. <resource>
  65. <get out="ui"/>
  66. <put in='input'/>
  67. <put in='frame' out="callback"/>
  68. <post in='frame'/>
  69. <post in='deleteframe'/>
  70. <delete in='opa'/>
  71. <delete in='opb'/>
  72. <resource relative='sse'>
  73. <sse/>
  74. </resource>
  75. <resource relative="languages">
  76. <get out="langs"/>
  77. <post in='lang'/>
  78. </resource>
  79. <resource relative="style.url">
  80. <get out="url"/>
  81. </resource>
  82. <resource relative="documents">
  83. <resource relative="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*">
  84. <get out="url"/>
  85. </resource>
  86. </resource>
  87. <resource relative="info.json">
  88. <get out="json"/>
  89. </resource>
  90. <resource relative="frames.json">
  91. <get out="json"/>
  92. </resource>
  93. <resource relative="dataelements.json">
  94. <get out="json"/>
  95. </resource>
  96. <resource relative='handler'>
  97. <post />
  98. <resource relative='sse'>
  99. <sse/>
  100. </resource>
  101. </resource>
  102. </resource>
  103. </resource>
  104. </description>