我是Spring-Boot的新手。我想从我的Spring MVC控制器自动将我的REST api文档生成到RAML中。有什么可以做的吗?或任何可以用来将其余api生成RAML的指南?

最佳答案

Spring REST Docs有一个Spring REST Docs到RAML扩展:https://github.com/ePages-de/restdocs-raml但是,此项目不再维护,作者建议使用其新项目https://github.com/ePages-de/restdocs-openapi而不是RAML转换为OpenAPI(Swagger)。他们提供了有关如何将OpenAPI转换为RAML的指南:https://github.com/ePages-de/restdocs-openapi#convert-to-raml有一个示例项目演示了如何转换为OpenAPI和RAML https://github.com/ePages-de/restdocs-openapi/tree/master/samples/restdocs-openapi-sample扩展的一个局限性在于它目前仅适用于Gradle。

10-08 15:07