Search code examples
springrestjerseywadl

How to generate WADL?


I have a REST api written with spring and I'm interested in generating a WADL from that service.

I saw few posts talking about that it's built in into spring & jersey and should be available from this url (using browser in my case):

http://< host >:8080/< Project Name >/management/application.wadl

in web.xml:

<servlet-mapping>
<servlet-name>rest</servlet-name>
<url-pattern>/management/*</url-pattern>

Controller:

@RestController
@RequestMapping(value = { "/management" })
public class MyConroller {

But I'm getting:

HTTP Status 404
The requested resource is not available.

I tried following these instructions, but still not working for me:-

https://github.com/autentia/wadl-tools

(You can refer to this issue: wadl-tools)

How can I enable it?

Thanks.


Solution

  • Managed using wadl-tools.

    see: https://github.com/autentia/wadl-tools/issues/7

    But I understood that this is an old aproch, so switched to OpenApi with swagger which looks much better: A 'simple' way to implement Swagger in a Spring MVC application