was.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <!--
  2. This file is part of centurio.work/ing/commands.
  3. centurio.work/ing/commands is free software: you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 3 of the License, or (at your
  6. option) any later version.
  7. centurio.work/ing/commands is distributed in the hope that it will
  8. be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
  10. Public License for more details.
  11. You should have received a copy of the GNU General Public License along with
  12. centurio.work/ing/commands (file COPYING in the main directory). If
  13. not, see <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="stations"><!--{{{-->
  17. <parameter name="stations" mimetype="*/xml" handler="http://riddl.org/ns/handlers/relaxng">
  18. <xi:include href="rngs/stations.rng"/>
  19. </parameter>
  20. </message> <!--}}}-->
  21. <message name="num"> <!--{{{-->
  22. <parameter name="num" type="nonNegativeInteger"/>
  23. </message> <!--}}}-->
  24. <message name="station"> <!--{{{-->
  25. <parameter name="station" mimetype="*/xml" handler="http://riddl.org/ns/handlers/relaxng">
  26. <xi:include href="rngs/t_station.rng"/>
  27. </parameter>
  28. </message> <!--}}}-->
  29. <message name="pattern"> <!--{{{-->
  30. <parameter name="pattern" mimetype="*/xml" handler="http://riddl.org/ns/handlers/relaxng">
  31. <xi:include href="rngs/t_pattern.rng"/>
  32. </parameter>
  33. </message> <!--}}}-->
  34. <message name="images"> <!--{{{-->
  35. <parameter name="images" mimetype="*/xml" handler="http://riddl.org/ns/handlers/relaxng">
  36. <xi:include href="rngs/t_images.rng"/>
  37. </parameter>
  38. </message> <!--}}}-->
  39. <message name="image"> <!--{{{-->
  40. <parameter name="image" mimetype="*/xml" handler="http://riddl.org/ns/handlers/relaxng">
  41. <xi:include href="rngs/t_image.rng"/>
  42. </parameter>
  43. </message> <!--}}}-->
  44. <message name="error"> <!--{{{-->
  45. <parameter name="error" mimetype="*/xml" handler="http://riddl.org/ns/handlers/relaxng">
  46. <xi:include href="rngs/t_error.rng"/>
  47. </parameter>
  48. </message> <!--}}}-->
  49. <message name="replacement"> <!--{{{-->
  50. <parameter name="replacement" mimetype="*/xml" handler="http://riddl.org/ns/handlers/relaxng">
  51. <xi:include href="rngs/t_replacement.rng"/>
  52. </parameter>
  53. </message> <!--}}}-->
  54. <message name="imageUpload"> <!--{{{-->
  55. <parameter name="imageUpload" mimetype="image/svg+xml"/>
  56. </message> <!--}}}-->
  57. <message name="amount"> <!--{{{-->
  58. <parameter name="amount" type="nonNegativeInteger"/>
  59. </message> <!--}}}-->
  60. <message name="theRealImage"> <!--}}}-->
  61. <parameter name="theRealImage" mimetype="image/svg+xml"/>
  62. </message><!--}}}-->
  63. <message name="imageid"> <!--{{{-->
  64. <parameter name="imageid" type="nonNegativeInteger"/>
  65. </message> <!--}}}-->
  66. <message name="orderlist"> <!--{{{-->
  67. <parameter name="orderlist" mimetype="application/json"/>
  68. </message> <!--}}}-->
  69. <message name="label"><!--}}}-->
  70. <parameter name="label" type="string"/>
  71. </message><!--}}}-->
  72. <message name="list"><!--}}}-->
  73. <parameter name="list" mimetype="application/json"/>
  74. </message><!--}}}-->
  75. <message name="patternID"><!--}}}-->
  76. <parameter name="patternID" mimetype="application/json"/>
  77. </message><!--}}}-->
  78. <message name="html"><!--}}}-->
  79. <parameter name="html" mimetype="text/html"/>
  80. </message><!--}}}-->
  81. <message name="errors"> <!--{{{-->
  82. <parameter name="errors" mimetype="*/xml" handler="http://riddl.org/ns/handlers/relaxng">
  83. <xi:include href="rngs/t_errors.rng"/>
  84. </parameter>
  85. </message> <!--}}}-->
  86. <resource>
  87. <get out="stations"/>
  88. <post />
  89. <resource relative="\d+">
  90. <get out="station"/>
  91. <post in="pattern" out="list"/>
  92. <delete/>
  93. <resource relative="\d+">
  94. <get out="pattern"/>
  95. <put in="pattern"/>
  96. <delete/>
  97. <put in="patternID" out="list"/>
  98. <resource relative="error">
  99. <get out="error"/>
  100. <put in="error"/>
  101. </resource>
  102. <resource relative="replacement">
  103. <get out="replacement"/>
  104. <put in="replacement"/>
  105. </resource>
  106. <resource relative="images">
  107. <get out="images"/>
  108. <post />
  109. <post in="imageUpload"/>
  110. <resource relative="reorder">
  111. <resource>
  112. <put in="orderlist"/>
  113. </resource>
  114. </resource>
  115. <resource relative="\d+">
  116. <get out="image"/>
  117. <resource>
  118. <get out="theRealImage"/>
  119. <put in="label"/>
  120. <delete/>
  121. </resource>
  122. </resource>
  123. </resource>
  124. </resource>
  125. <resource relative="search">
  126. <get out="list"/>
  127. <resource relative="patternID">
  128. <get out="list"/>
  129. </resource>
  130. <resource relative="images">
  131. <get out="list"/>
  132. <resource relative="\d+">
  133. <get out="theRealImage"/>
  134. </resource>
  135. </resource>
  136. <resource relative="imagesServerSide">
  137. <get out="list"/>
  138. <resource relative="\d+">
  139. <get out="html"/>
  140. </resource>
  141. </resource>
  142. <resource relative="imagesWIZ">
  143. <get out="list"/>
  144. <resource relative="\d+">
  145. <get out="image"/>
  146. </resource>
  147. </resource>
  148. <resource relative="errorsWIZ">
  149. <get out="errors"/>
  150. </resource>
  151. <resource relative="imagesReverse">
  152. <get out="list"/>
  153. </resource>
  154. </resource>
  155. </resource>
  156. </resource>
  157. </description>