<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>
<application
xmlns="http://wadl.dev.java.net/2009/02">
<doc xmlns:jersey="http://jersey.java.net/"
jersey:generatedBy="Jersey:
1.12 02/1
5/2012
05:30 PM"/>
<grammars>
<include href="application.wadl/xsd0.xsd">
<doc title="Generated"
xml:lang="en"/>
</include>
</grammars>
<resources
base="http://users2.cs.umb.edu:11600/firstRest2/rest/">
<resource path="/todos">
<method id="newTodo" name="POST">
<request>
<representation mediaType="application/x-www-form-urlencoded">
<param
xmlns:xs="http://www.w3.org/2001/XMLSchema"
name="id"
style="query" type="xs:string"/>
<param
xmlns:xs="http://www.w3.org/2001/XMLSchema"
name="summ
ary"
style="query" type="xs:string"/>
<param
xmlns:xs="http://www.w3.org/2001/XMLSchema"
name="desc
ription"
style="query" type="xs:string"/>
</representation>
</request>
</method>
<method id="getTodos" name="GET">
<response>
<ns2:representation
xmlns:ns2="http://wadl.dev.java.net/2009/02"
xmlns="" element="todo"
mediaType="application/xml"/>
<ns2:representation
xmlns:ns2="http://wadl.dev.java.net/2009/02"
xmlns="" element="todo"
mediaType="application/json"/>
</response>
</method>
<method id="getTodosBrowser" name="GET">
<response>
<ns2:representation
xmlns:ns2="http://wadl.dev.java.net/2009/02"
xmlns="" element="todo"
mediaType="text/xml"/>
</response>
</method>
<resource
path="count">
<method id="getCount" name="GET">
<response>
<representation mediaType="text/plain"/>
</response>
</method>
</resource>
<resource path="{todo}">
<param
xmlns:xs="http://www.w3.org/2001/XMLSchema"
name="todo" style=
"template" type="xs:string"/>
<method id="getTodo" name="GET">
<response>
<ns2:representation
xmlns:ns2="http://wadl.dev.java.net/2009/
02"
xmlns="" element="todo"
mediaType="application/xml"/>
<ns2:representation
xmlns:ns2="http://wadl.dev.java.net/2009/
02"
xmlns="" element="todo"
mediaType="application/json"/>
</response>
</method>
<method id="deleteTodo" name="DELETE"/>
<method id="getTodoHTML" name="GET">
<response>
<ns2:representation
xmlns:ns2="http://wadl.dev.java.net/2009/
02"
xmlns="" element="todo"
mediaType="text/xml"/>
</response>
</method>
<method id="putTodo" name="PUT">
<request>
<representation mediaType="application/xml"/>
</request>
<response>
<representation mediaType="*/*"/>
</response>
</method>
</resource>
</resource>
<resource
path="/hello">
<method id="echoXMLHello" name="POST">
<request>
<representation mediaType="text/xml"/>
</request>
<response>
<representation mediaType="text/xml"/>
</response>
</method>
<method id="sayXMLHello" name="GET">
<response>
<representation mediaType="text/xml"/>
</response>
</method>
<method id="sayHtmlHello" name="GET">
<response>
<representation mediaType="text/html"/>
</response>
</method>
<method id="sayJsonHello" name="GET">
<response>
<representation mediaType="application/json"/>
</response>
</method>
<method id="sayPlainTextHello" name="GET">
<response>
<representation mediaType="text/plain"/>
</response>
</method>
</resource>
</resources>
</application>
xsd0.xsd
<?xml version="1.0"
standalone="yes"?>
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element
name="todo" type="todo"/>
<xs:complexType
name="todo">
<xs:sequence>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="id" type="xs:string" minOccurs="0"/>
<xs:element name="summary" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:schema>