Paul Libbrecht wrote: > Wouldn't this be easily written in WSDL or WADL? > I believe it would be useful. > It was easy so I added it.
Here it is how it works: 1) curl http://localhost:8080/xwiki/rest/ Will get the standard service document. A link is added to "/" with rel="wadl" and type="application/vnd.sun.wadl+xml" to describe the fact that at this URI a WADL description is also available. 2) curl -H "Accept: application/vnd.sun.wadl+xml" http://localhost:8080/xwiki/rest/ Will get a WADL description of the whole application. 3) curl -X OPTIONS http://localhost:8080/xwiki/rest/ Equivalent to 2. RESTlet automatically gives WADL description of resources when an OPTION request is sent. Doing this at the application root will describe the whole application. The same can be done on other URIs in order to have a WADL description of the specific target resource. -Fabio _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

