<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
We've done quite a bit of work to get high quality documentation from a WADL,  in fact we are using some of this today.  We've taken most of the hard work re: parsing the WADL, at least for the purpose of generating docs from it and of writing code that can
 read it (though that later part can use a bit more work).
<div><br>
</div>
<div>We are also working to add WADL support in Repose, which we presented at the summit, you can find the presentation here:
<a href="https://github.com/rackspace/repose/tree/master/documentation/presentations">
https://github.com/rackspace/repose/tree/master/documentation/presentations</a>. The plan there is to have an HTTP proxy that can do validation of a service on the fly.  When it's done, you could, for example, turn this on when you run functional tests and
 get a gauge as to what your API coverage is and track both client and service API errors.</div>
<div><br>
</div>
<div>Other API tools like Apigee and Mashery already have support for WADL.  In fact apigee maintains an extensive wadl library for common APIs: <a href="https://github.com/apigee/wadl-library">https://github.com/apigee/wadl-library</a>.  There is some WADL
 support in python as well, though I haven't tested it first hand.</div>
<div>
<div>
<div><br>
</div>
<div>So obviously, I'd vote for WADL.</div>
<div><br>
</div>
<div>I haven't looked at Swagger too deeply, at first glance it *seems* to be missing some stuff -- but I'll have to study it in detail to be sure. (How do you define acceptable media types, matrix parameters, that a particular HTTP header is required?)</div>
<div><br>
</div>
<div>I don't like the fact that it tries to describe the format of the message as well as the HTTP operations.  I'd rather take the approach that WADL takes which is to rely on existing schema languages like XML Schema and JSON Schema. </div>
<div><br>
</div>
<div>What I do like about Swagger is that you seem to be able to generate some really cool interactive documentation from it.  I really like their API explorer feature for example:   You can see it here:  <a href="http://developer.wordnik.com/docs#!/account/get_word_lists_for_current_user">http://developer.wordnik.com/docs#!/account/get_word_lists_for_current_user</a>.
   That's pretty cool.  The thing is though, I could easily generate Swagger from my WADL :-)  So choosing WADL doesn't necessarily mean that we can't get access to those tools.</div>
<div><br>
</div>
<div>Just my 2 cents,</div>
<div><br>
</div>
<div>-jOrGe W.</div>
<div><br>
<div>
<div>On Oct 25, 2011, at 3:24 PM, Anne Gentle wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Hi all - <br>
<br>
Would also love Swagger. Nati looked into it and he thought it would require a Python client generator, based on reading that "Client generators are currently available for Scala, Java, Javascript, Ruby, PHP, and Actionscript 3." So in the meantime the QA list
 and Nati suggested WADL as a starting point for auto-generating simple API documentation while also looking towards Swagger for a way to document a public cloud like the Free Cloud. At the last OpenStack hackathon in the Bay Area (California), Nati worked
 through a simple WADL reader, he may be able to describe it better. <br>
<br>
Hope that helps - sorry it's not more detailed than that but wanted to give some background, sounds like we all want similar outcomes and the resources for tasks to get us to outcomes is all we're lacking. QA Team, let me know how the Docs Team can work with
 you here. <br>
<br>
Anne<br>
<div style="margin: 2em 0pt;" name="sig_d41d8cd98f">
<div style="padding: 5px; font-size: 11px; color: rgb(102, 102, 102); font-family: sans-serif;">
<strong>Anne Gentle</strong> <br>
<a href="mailto:anne@openstack.org" target="_blank">anne@openstack.org</a><br>
<div style="font-size: 10px;"><a href="http://justwriteclick.com/" target="_blank">my blog</a> |
<a href="http://xmlpress.net/publications/conversation-community/" target="_blank">
my book</a> | <a href="http://www.linkedin.com/in/annegentle" target="_blank"><span>LinkedIn</span></a> |
<a href="http://del.icio.us/annegentle" target="_blank">Delicious</a> | <a href="http://twitter.com/annegentle" target="_blank">
Twitter</a> </div>
</div>
</div>
<div class="gmail_quote">On Tue, Oct 25, 2011 at 2:41 PM, Joseph Heck <span dir="ltr">
<<a href="mailto:heckj@mac.com">heckj@mac.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I expect this is going to open a nasty can of worms... today we don't have a consistent way of describing the APIs for the various services. I saw Nati's bug (<a href="https://launchpad.net/bugs/881621" target="_blank">https://launchpad.net/bugs/881621</a>),
 which implies that all the services should have a WADL somewhere describing the API.<br>
<br>
I'm not a huge fan of WADL, but the only other thing I've found is swagger (<a href="http://swagger.wordnik.com/spec" target="_blank">http://swagger.wordnik.com/spec</a>).  I have been working towards trying to create an comprehensive OpenStack API documentation
 set that can be published as HTML, not unlike some of these:<br>
<br>
       <a href="https://dev.twitter.com/docs/api" target="_blank">https://dev.twitter.com/docs/api</a><br>
       <a href="http://developer.netflix.com/docs/REST_API_Reference" target="_blank">http://developer.netflix.com/docs/REST_API_Reference</a><br>
       <a href="http://code.google.com/p/bitly-api/wiki/ApiDocumentation#REST_API" target="_blank">http://code.google.com/p/bitly-api/wiki/ApiDocumentation#REST_API</a><br>
       <a href="http://upcoming.yahoo.com/services/api/" target="_blank">http://upcoming.yahoo.com/services/api/</a><br>
<br>
To make this sort of web-page documentation effective, I think it's best to drive it from descriptions on each of the projects (if we can). I've checked with some friends who've done similar, and learned that most of the those API doc sets are maintained by
 hand - not generated from description files.<br>
<br>
What do you all think about standardizing on WADL (or swagger) as a description of the API and generating comprehensive web-site-based API documentation from those description files? Does anyone have any other description formats that would work for this as
 an alternative?<br>
<br>
(I admit I don't want to get into XML parsing hell, which is what it appears that WADL might lead too)<br>
<br>
-joe<br>
<br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote>
</div>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</body>
</html>