was.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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. <message name="externalImage"> <!--{{{-->
  87. <parameter name="externalImage" mimetype="*/xml" handler="http://riddl.org/ns/handlers/relaxng">
  88. <xi:include href="rngs/t_externalImage.rng"/>
  89. </parameter>
  90. </message> <!--}}}-->
  91. <resource>
  92. <get out="stations"/>
  93. <post />
  94. <resource relative="cutimage">
  95. <get/>
  96. </resource>
  97. <resource relative="\d+">
  98. <get out="station"/>
  99. <post in="pattern" out="list"/>
  100. <delete/>
  101. <resource relative="\d+">
  102. <get out="pattern"/>
  103. <put in="pattern"/>
  104. <delete/>
  105. <put in="patternID" out="list"/>
  106. <resource relative="error">
  107. <get out="error"/>
  108. <put in="error"/>
  109. </resource>
  110. <resource relative="replacement">
  111. <get out="replacement"/>
  112. <put in="replacement"/>
  113. </resource>
  114. <resource relative="images">
  115. <get out="images"/>
  116. <post in="externalImage" />
  117. <post />
  118. <post in="imageUpload"/>
  119. <resource relative="reorder">
  120. <resource>
  121. <put in="orderlist"/>
  122. </resource>
  123. </resource>
  124. <resource relative="\d+">
  125. <get out="image"/>
  126. <resource>
  127. <get out="theRealImage"/>
  128. <put in="label"/>
  129. <delete/>
  130. </resource>
  131. </resource>
  132. </resource>
  133. </resource>
  134. <resource relative="search">
  135. <get out="list"/>
  136. <resource relative="patternID">
  137. <get out="list"/>
  138. </resource>
  139. <resource relative="images">
  140. <get out="list"/>
  141. <resource relative="\d+">
  142. <get out="theRealImage"/>
  143. </resource>
  144. </resource>
  145. <resource relative="imagesServerSide">
  146. <get out="list"/>
  147. <resource relative="\d+">
  148. <get out="html"/>
  149. </resource>
  150. </resource>
  151. <resource relative="imagesWIZ">
  152. <get out="list"/>
  153. <resource relative="\d+">
  154. <get out="image"/>
  155. </resource>
  156. </resource>
  157. <resource relative="errorsWIZ">
  158. <get out="errors"/>
  159. </resource>
  160. <resource relative="imagesReverse">
  161. <get out="list"/>
  162. </resource>
  163. </resource>
  164. </resource>
  165. </resource>
  166. </description>