123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- <!--
- This file is part of centurio.work/ing/commands.
- centurio.work/ing/commands is free software: you can redistribute it and/or
- modify it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or (at your
- option) any later version.
- centurio.work/ing/commands is distributed in the hope that it will
- be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
- Public License for more details.
- You should have received a copy of the GNU General Public License along with
- centurio.work/ing/commands (file COPYING in the main directory). If
- not, see <http://www.gnu.org/licenses/>.
- -->
- <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">
- <message name="stations"><!--{{{-->
- <parameter name="stations" mimetype="*/xml" handler="http://riddl.org/ns/handlers/relaxng">
- <xi:include href="rngs/stations.rng"/>
- </parameter>
- </message> <!--}}}-->
- <message name="num"> <!--{{{-->
- <parameter name="num" type="nonNegativeInteger"/>
- </message> <!--}}}-->
- <message name="station"> <!--{{{-->
- <parameter name="station" mimetype="*/xml" handler="http://riddl.org/ns/handlers/relaxng">
- <xi:include href="rngs/t_station.rng"/>
- </parameter>
- </message> <!--}}}-->
- <message name="pattern"> <!--{{{-->
- <parameter name="pattern" mimetype="*/xml" handler="http://riddl.org/ns/handlers/relaxng">
- <xi:include href="rngs/t_pattern.rng"/>
- </parameter>
- </message> <!--}}}-->
- <message name="images"> <!--{{{-->
- <parameter name="images" mimetype="*/xml" handler="http://riddl.org/ns/handlers/relaxng">
- <xi:include href="rngs/t_images.rng"/>
- </parameter>
- </message> <!--}}}-->
- <message name="image"> <!--{{{-->
- <parameter name="image" mimetype="*/xml" handler="http://riddl.org/ns/handlers/relaxng">
- <xi:include href="rngs/t_image.rng"/>
- </parameter>
- </message> <!--}}}-->
- <message name="error"> <!--{{{-->
- <parameter name="error" mimetype="*/xml" handler="http://riddl.org/ns/handlers/relaxng">
- <xi:include href="rngs/t_error.rng"/>
- </parameter>
- </message> <!--}}}-->
- <message name="replacement"> <!--{{{-->
- <parameter name="replacement" mimetype="*/xml" handler="http://riddl.org/ns/handlers/relaxng">
- <xi:include href="rngs/t_replacement.rng"/>
- </parameter>
- </message> <!--}}}-->
- <message name="imageUpload"> <!--{{{-->
- <parameter name="imageUpload" mimetype="image/svg+xml"/>
- </message> <!--}}}-->
- <message name="amount"> <!--{{{-->
- <parameter name="amount" type="nonNegativeInteger"/>
- </message> <!--}}}-->
- <message name="theRealImage"> <!--}}}-->
- <parameter name="theRealImage" mimetype="image/svg+xml"/>
- </message><!--}}}-->
- <message name="imageid"> <!--{{{-->
- <parameter name="imageid" type="nonNegativeInteger"/>
- </message> <!--}}}-->
- <message name="orderlist"> <!--{{{-->
- <parameter name="orderlist" mimetype="application/json"/>
- </message> <!--}}}-->
- <message name="label"><!--}}}-->
- <parameter name="label" type="string"/>
- </message><!--}}}-->
- <message name="list"><!--}}}-->
- <parameter name="list" mimetype="application/json"/>
- </message><!--}}}-->
- <message name="patternID"><!--}}}-->
- <parameter name="patternID" mimetype="application/json"/>
- </message><!--}}}-->
- <message name="html"><!--}}}-->
- <parameter name="html" mimetype="text/html"/>
- </message><!--}}}-->
- <message name="errors"> <!--{{{-->
- <parameter name="errors" mimetype="*/xml" handler="http://riddl.org/ns/handlers/relaxng">
- <xi:include href="rngs/t_errors.rng"/>
- </parameter>
- </message> <!--}}}-->
- <message name="externalImage"> <!--{{{-->
- <parameter name="externalImage" mimetype="*/xml" handler="http://riddl.org/ns/handlers/relaxng">
- <xi:include href="rngs/t_externalImage.rng"/>
- </parameter>
- </message> <!--}}}-->
-
-
-
-
- <resource>
- <get out="stations"/>
- <post />
- <resource relative="cutimage">
- <get/>
- </resource>
- <resource relative="json">
- <get out="list"/>
- <resource relative=".*">
- <put in="list"/>
- <get out="list"/>
- </resource>
- </resource>
- <resource relative="\d+">
- <get out="station"/>
- <post in="pattern" out="list"/>
- <delete/>
- <resource relative="\d+">
- <get out="pattern"/>
- <put in="pattern"/>
- <delete/>
- <put in="patternID" out="list"/>
- <resource relative="error">
- <get out="error"/>
- <put in="error"/>
- </resource>
- <resource relative="replacement">
- <get out="replacement"/>
- <put in="replacement"/>
- </resource>
- <resource relative="images">
- <get out="images"/>
- <post in="externalImage" />
- <post />
- <post in="imageUpload"/>
- <resource relative="reorder">
- <resource>
- <put in="orderlist"/>
- </resource>
- </resource>
- <resource relative="\d+">
- <get out="image"/>
- <resource>
- <get out="theRealImage"/>
- <put in="label"/>
- <delete/>
- </resource>
- </resource>
- </resource>
- </resource>
- <resource relative="search">
- <get out="list"/>
- <resource relative="imagesWIZ">
- <get out="list"/>
- <resource relative="\d+">
- <get out="image"/>
- </resource>
- </resource>
- <resource relative="errorsWIZ">
- <get out="errors"/>
- </resource>
- </resource>
- </resource>
- <resource relative="assignments">
- <get out="list"/>
- <post in="list"/>
- <resource relative="search">
- <get out="list"/>
- </resource>
- <resource relative="\d+">
- <get out="list"/>
- <delete/>
- <resource relative="\d+">
- <delete/>
- </resource>
- </resource>
- </resource>
- </resource>
- </description>
|