简体   繁体   中英

How can I generate WADL for REST services

I have a web application providing more than 30 REST services (using Jersey) to clients. Is it possible to automatically create a WADL document for my application?

I need this, so that I can have it configured in SoapUI for testing various scenarios and save it for later use.

If you are using Jersey then url to wadl would be something like

http://localhost:8080/applicationname/application.wadl

You may need to add the resource base into the url eg

http://localhost:8080/applicationname/resources/application.wadl

http://{host}:{port}/{context_root}/{resource}/application.wadl 

替换hostportcontext rootresource

In the past I've used Enunciate ( GitHub repository ).

It's a build-time tool that generates Interface Definition Documents (WADL, WSDL, etc) automatically for you. It's really easy to integrate it in your Maven build.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM