We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
Sphinx Contrib 项目似乎还有一个用于记录 RESTful HTTP API 的 HTTP 域 包。您可以在 Python 包 站点上找到其文档。我无法谈论它的适用性:我才刚刚开始研究 Sphinx,并且我还需要记录 RESTful API,并注意到了这个贡献的包。
The Sphinx Contrib project also seems to have an HTTP Domain package for documenting RESTful HTTP APIs. You can find its documentation on the Python packages site. I can't speak to its fitness: I'm only just starting to look into Sphinx, and I have a need to document RESTful APIs as well, and noticed this contributed package.
由于似乎没有任何现有的解决方案,我实现了一个非常简单的 HTTP 域,我可以用它来标记 API 方法:
允许我标记这样的方法,并且它们的样式在视觉上会很好看:
它 这是我第一次尝试 Sphinx 和 Python,所以这应该被认为是非常基本的代码。如果有人有兴趣充实这个项目,请在 Github 上分叉这个项目!
Since there doesn't appear to be any existing solution, I have implemented a very simple HTTP domain that I can use to mark up API methods:
It allows me to mark up methods like this and they'll be styled somewhat visually nicely:
This was my first foray into both Sphinx and Python, so this should be considered very rudimentary code. If anybody is interested in fleshing this out, please fork this project on Github!