TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Node.js API Documentation

6 点作者 devfatigue大约 4 年前
What do you use to get a swagger.json or similar for api documentation?<p>In the dotnet world there is swashbuckle. Is there a node equivalent or better?

2 条评论

Raed667大约 4 年前
I have been using tsoa to generate API documentation from TypeScript types. <a href="https:&#x2F;&#x2F;github.com&#x2F;lukeautry&#x2F;tsoa" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lukeautry&#x2F;tsoa</a><p>Example project: <a href="https:&#x2F;&#x2F;github.com&#x2F;RaedsLab&#x2F;demo-project&#x2F;blob&#x2F;master&#x2F;backend&#x2F;src&#x2F;controller&#x2F;todo.ts" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;RaedsLab&#x2F;demo-project&#x2F;blob&#x2F;master&#x2F;backend...</a>
评论 #27281872 未加载
评论 #27273058 未加载
Sheepsteak大约 4 年前
I think the official swagger-node (<a href="https:&#x2F;&#x2F;github.com&#x2F;swagger-api&#x2F;swagger-node" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;swagger-api&#x2F;swagger-node</a>) hasn&#x27;t been updated for a while. There is swagger-jsdoc (<a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;swagger-jsdoc" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;swagger-jsdoc</a>) though.