Node.js或Express.js REST API文档生成器 [英] Node.js or Express.js REST API document generator

查看:92
本文介绍了Node.js或Express.js REST API文档生成器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个使用Express.js的restAPI,我想知道是否有办法生成API文档,允许用户查看API定义或甚至可以尝试API调用?

I'm working on a restAPI using Express.js and I'm wondering if there is a way for me to generate API documents that allow a user to view API definitions or possibly even try out the API call?

推荐答案

Swagger是一个令人惊奇的自动生成API文档的项目。它包括一个Express模块​​。

Swagger is an amazing project for auto generating API documentation. It includes an Express module.

https://developers.helloreverb.com/swagger/
https://github.com/wordnik/swagger-node-express

这篇关于Node.js或Express.js REST API文档生成器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆