-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build HTTP client into swadl #2
Comments
Hi Uwe, Adding an HTTP client is certainly doable, but I left it out because a lot One of the things that I didn't like about Swagger (when my company was Seems like a useful feature, though, so long as there's a flag to turn it Thanks, On Mon, Oct 12, 2015 at 2:45 AM, upachler [email protected] wrote:
|
Hi Elena, Glad to read that a HTTP client is on the cards! Such a client could build on enrichments in the WADL source. You'd simply add elements from another namespace as extensions, like authentication per resource: ...
<w:resource path='foo'>
<x:authentication type='basic' realm='myrealm'/>
... Another reason for extensions may be message body examples to display in the swadl documentation that users may use as a starting point when using the client: ..
<w:resource path='foo'>
<w:method name='PUT'>
<w:request>
<w:representation mediaType='application/xml' element='b:book'>
<x:example>
<!-- we embed the example XML here - this may also in a different form,
depending on the media type -->
<b:book name='Macbeth' author='W. Shakespeare'>
<b:chapter name='prolougue'/>
...
<b:book/>
</x:example> Both of these extensions could then be picked up by the a swadl-generated client. Cheers, |
I think the first pass will assume no authentication or enrichments, and Thanks, On Tue, Oct 13, 2015 at 6:04 PM, upachler [email protected] wrote:
|
Sounds great! While I'm not too good with all that JavaScript/Frontendy stuff, I may be of help in the second stage with these enrichments, or simply with testing. The main reason for me asking about swadl enhancements is a pet project I'm currently working on: It aims at bringing all aspects of W*DL contract-first development into one toolchain, quite similar to what swagger does. The aim is to generate clients & server interfaces on various platforms, as well as documentation (that's where swadl comes in). The toolchain may simply generate examples from XML Schema complexTypes found in the WADL's grammar, and put them into a 'normalized' WADL, where swadl can pick them up. So I'm looking forward to the client functionality; let me know if I can assist. Cheers, |
Well, full disclaimer: I'm not a front-end dev either. I just like to dick My big concern about putting a ton of time into this project is the WADL Do you have an extended WADL set up for your project? The one I set up a Again, I don't know how much time I'm going to have to devote to a client, Thanks! On Wed, Oct 14, 2015 at 11:54 AM, upachler [email protected] wrote:
|
Yep, I see that here as well. I guess it has to do with the fact it's based on XML, where people nowadays favor JSON, and that even though the tools are all there (CXF, JAXB/XJC, etc.), they're not well integrated to form a single toolchain.
In short, no. I don't use Jersey, and I generally won't rely on framework-generated WADL at runtime. I usually work contract first, so I start with a hand-written WADL and XSD. If you're interested, hook up with me on bitbucket. It's currently in a private repo, but I'd grant you access so you can see what's there. Cheers, |
I was messing around with the project and got some basic requests going. Could you send me a sample WADL and XSD files that you feel represent your And I can't promise a timeline, but I'll create a branch, update it with my Thanks, On Wed, Oct 14, 2015 at 1:21 PM, upachler [email protected] wrote:
|
Hi Elena, I'll have to dig a bit to come up with a WADL for testing, as most of the stuff I've done in the field is closed source. So it'll be over the weekend (I might even craft a new one, we'll see). Cheers, |
Eh, I'll risk it. Shoot me the sample files at elena.hearty(at)gmail(dot)com Thanks, On Fri, Oct 16, 2015 at 4:05 AM, upachler [email protected] wrote:
|
Hi Elena,
Are there any plans to build a HTTP client into swadl? Swagger has one, which lets you try out the services you can document with it - it'd be great if swadl had something like this too; it would help with testing and my app devs would stop nagging me that "your APIs are so hard to call" ;-)
I'm no good with frontend webby stuff, but I can conribute some XSL if that helps.
Cheers,
Uwe
The text was updated successfully, but these errors were encountered: