<?xml version="1.0" encoding="ISO-8859-1"?>
<nex:nexml generator="REST-nexml" version="1.0" xmlns:nex="http://www.nexml.org/1.0"
    xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xml="http://www.w3.org/XML/1998/namespace"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.nexml.org/1.0 ../xsd/nexml.xsd">
    <!--
    A REST service description. Note that this file includes concrete URLs, i.e.
    it's more like an instance of a service, represented in xml, rather than an
    abstract interface. A file like this is automatically generated by 
    http://localhost/cgi-bin/ti.pl/interface, which is where it would be read 
    from by the client code, so this file here is just an example.
    -->
    <dict>
        <key>TreeInfer</key>
        <dict>
            <key>TreeInfer</key>
            <dict>
                <key>uri</key>
                <dict>
                    <key>url</key>
                    <url>http://localhost/cgi-bin/ti.pl/analysis</url>
                    <key>has-reference-suffix</key>
                    <boolean>false</boolean>
                </dict>
                <key>methods</key>
                <dict>
                    <key>new</key>
                    <dict>
                        <key>method</key>
                        <string>PUT</string>                    
                        <key>returns</key>
                        <dict>
                            <key>header</key>
                            <dict>
                                <key>status</key>
                                <integer>201</integer>
                                <key>reference</key>
                                <id>reference</id>
                            </dict>
                        </dict>
                    </dict>
                </dict>
            </dict>
            <key>Matrix</key>
            <dict>
                <key>uri</key>
                <dict>
                    <key>url</key>
                    <url>http://localhost/cgi-bin/ti.pl/matrix/</url>
                    <key>has-reference-suffix</key>
                    <boolean>true</boolean>
                </dict>
                <key>methods</key>
                <dict>
                    <key>setMatrix</key>
                    <dict>
                        <key>method</key>
                        <string>POST</string>                    
                        <key>accepts</key>
                        <dict>
                            <key>content-type</key>
                            <string>multipart/form-data</string>
                        </dict>
                        <key>returns</key>
                        <dict>
                            <key>header</key>
                            <dict>

                                <key>status</key>
                                <integer>202</integer>
                            </dict>
                        </dict>
                    </dict>
                    <key>getMatrix</key>
                    <dict>
                        <key>method</key>
                        <string>GET</string>                    
                        <key>returns</key>
                        <dict>
                            <key>header</key>
                            <dict>
                                <key>status</key>
                                <integer>200</integer>
                            </dict>
                            <key>body</key>
                            <dict>
                                <key>content-type</key>
                                <string>application/xml</string>
                            </dict>

                        </dict>
                    </dict>
                </dict>
            </dict>
            <key>Tree</key>
            <dict>
                <key>uri</key>
                <dict>
                    <key>url</key>
                    <url>http://localhost/cgi-bin/ti.pl/tree/</url>
                    <key>has-reference-suffix</key>
                    <boolean>true</boolean>
                </dict>
                <key>methods</key>
                <dict>
                    <key>getTree</key>
                    <dict>
                        <key>method</key>
                        <string>GET</string>                    
                        <key>returns</key>
                        <dict>
                            <key>header</key>
                            <dict>
                                <key>status</key>
                                <integer>200</integer>
                            </dict>
                            <key>body</key>
                            <dict>
                                <key>content-type</key>
                                <string>application/xml</string>
                            </dict>
                        </dict>
                    </dict>
                </dict>
            </dict>
            <key>Reference</key>
            <dict>
                <key>uri</key>
                <dict>
                    <key>url</key>
                    <url>http://localhost/cgi-bin/ti.pl/analysis/</url>
                    <key>has-reference-suffix</key>
                    <boolean>true</boolean>
                </dict>
                <key>methods</key>
                <dict>
                    <key>remove</key>
                    <dict>
                        <key>method</key>
                        <string>DELETE</string>                    
                        <key>returns</key>

                        <dict>
                            <key>header</key>
                            <dict>
                                <key>status</key>
                                <integer>204</integer>
                            </dict>
                        </dict>
                    </dict>
                </dict>
            </dict>
        </dict>
    </dict>
</nex:nexml>