frames.xml 3.0 KB

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