Are there any CMS engines designed for creating reference documentation for a REST API? [closed]

☆樱花仙子☆ 提交于 2019-12-22 08:55:49

问题


I'm in the process of creating a REST API for interfacing with a new SaaS site we're building and we need to document the API for use by a third-party iOS developer (plus other developers once the service goes public). Are there any existing database driven content management systems that facilitate building API documentation for this type of system?

I'm hoping for something more tailored than a generic wiki or wordpress build would provide.

edit: I should probably mention that our VPS is setup as a LAMP stack, so something PHP driven would be preferable.

Self-documenting is not a requirement, I'm actually wanting something more manual. I'd like to use the CMS as a designing platform for APIs that still need to be written as well.


回答1:


I/O Docs is an interactive documentation system running on nodejs. You generate a JSON schema of your API and it provides a HTML/JS site that describes your API and lets developers to play with it live from their browser.

Swagger is a specification for generating API docs and a framework for running your own documentation site.

While not a replacement for documentation Apigee ToGo would be a great addition to a more generic CMS for docs.

Sphinx isn't REST oriented but will generate documentation in general.

If you are building your API in Java Enunciate is something to look at as well. It will build documentation from JavaDocs.




回答2:


Swagger has a "manual" way to enter your specs and generate documentation. See this answer here: https://stackoverflow.com/a/12085196/411229

Link to example project: https://github.com/wordnik/swagger-core/tree/master/samples/no-server



来源:https://stackoverflow.com/questions/8873037/are-there-any-cms-engines-designed-for-creating-reference-documentation-for-a-re

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!