was.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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="json">
  98. <get out="list"/>
  99. <resource relative=".*">
  100. <put in="list"/>
  101. <get out="list"/>
  102. </resource>
  103. </resource>
  104. <resource relative="\d+">
  105. <get out="station"/>
  106. <post in="pattern" out="list"/>
  107. <delete/>
  108. <resource relative="\d+">
  109. <get out="pattern"/>
  110. <put in="pattern"/>
  111. <delete/>
  112. <put in="patternID" out="list"/>
  113. <resource relative="error">
  114. <get out="error"/>
  115. <put in="error"/>
  116. </resource>
  117. <resource relative="replacement">
  118. <get out="replacement"/>
  119. <put in="replacement"/>
  120. </resource>
  121. <resource relative="images">
  122. <get out="images"/>
  123. <post in="externalImage" />
  124. <post />
  125. <post in="imageUpload"/>
  126. <resource relative="reorder">
  127. <resource>
  128. <put in="orderlist"/>
  129. </resource>
  130. </resource>
  131. <resource relative="\d+">
  132. <get out="image"/>
  133. <resource>
  134. <get out="theRealImage"/>
  135. <put in="label"/>
  136. <delete/>
  137. </resource>
  138. </resource>
  139. </resource>
  140. </resource>
  141. <resource relative="search">
  142. <get out="list"/>
  143. <resource relative="imagesWIZ">
  144. <get out="list"/>
  145. <resource relative="\d+">
  146. <get out="image"/>
  147. </resource>
  148. </resource>
  149. <resource relative="errorsWIZ">
  150. <get out="errors"/>
  151. </resource>
  152. </resource>
  153. </resource>
  154. <resource relative="assignments">
  155. <get out="list"/>
  156. <post in="list" out="list"/>
  157. <resource relative="search">
  158. <get out="list"/>
  159. </resource>
  160. <resource relative="\d+">
  161. <get out="list"/>
  162. <delete/>
  163. <resource relative="\d+">
  164. <delete/>
  165. </resource>
  166. </resource>
  167. </resource>
  168. </resource>
  169. </description>