Hi I am working with Spring 3.5.0.Release. I want to generate a WADL for my spring rest service. Is their any functionality in Spring by which i can easily generate the WADL.
相关问题
- java.lang.IllegalArgumentException: Cannot set to
- Design RESTful service with multiple ids
- Axios OPTIONS instead of POST Request. Express Res
- Plain (non-HTML) error pages in REST api
- Spring Data MongoDB - lazy access to some fields
相关文章
- java JDK动态代理和cglib动态代理最后获取的代理对象都为null的问题
- org.xml.sax.SAXParseException; lineNumber: 7; colu
- spring-mvc a标签带参怎样向controller发送请求。路径格式?
- SpringMVC如何把File封装到Map中?
- Spring: controller inheritance using @Controller a
- How to load @Configuration classes from separate J
- Java spring framework - how to set content type?
- Java/Spring MVC: provide request context to child
Spring REST does not come with out of the box WADL generator like JERSEY However it should be pretty easy to get it done.
https://jira.spring.io/browse/SPR-8705
See Blogpost https://javattitude.wordpress.com/2014/05/26/wadl-generator-for-spring-rest/
You can use Swagger-SpringMVC, which will automatically integrate Swagger compliant API-docs into your application.
Version 1.0.2 is stable and supports Swagger 1.2.
Version 2.0.0 is currently under development and will support Swagger 2.0.
The api-docs will be accessible using http://localhost:8080/api-docs then.
https://github.com/springfox/springfox
You can also use Swagger-UI to access the API-docs and you can generate the client code using Swagger-Codegen.