从 Symfony 自动生成 REST API 文档 [英] Auto generate REST API docs from Symfony
本文介绍了从 Symfony 自动生成 REST API 文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有一种简单的方法可以直接从 Symfony 项目中为 REST api 生成文档?
Is there an easy way to generate docs for REST api direct from a Symfony project?
推荐答案
抱歉挖了帖子,但是有一个 Symfony bundle 来帮助 API doc 生成,你可以查看 NelmioApiDocBundle 与 FOSRestBundle 互连良好.
Sorry for the post digging, but there is a Symfony bundle to help API doc generation, you can check out NelmioApiDocBundle which interconnects well with FOSRestBundle.
FOSRestBundle 文档提供了示例包,使用这两个包来生成符合 REST 的 Web 服务及其文档.
The FOSRestBundle documentation provides sample bundles using both bundles to generate REST-ful web services and their documentation.
这篇关于从 Symfony 自动生成 REST API 文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文