[資訊] API文檔: swagger

swagger-js
https://github.com/swagger-api/swagger-js

swagger web
https://swagger.io/

swagger-ui
https://github.com/swagger-api/swagger-ui

swagger-ui online
https://swagger.io/tools/swagger-ui/

使用Swagger構建Node.js API文檔與Mock Server
https://www.jianshu.com/p/50446a0513f8

Swagger是一個編寫API文檔的套件組合,而不是一個單一的工具。具體可以在官網看到。
Swagger可以實現很多功能,最基礎、常用的為:
1. API文檔撰寫 —— Swagger Editor
2. API文檔的顯示 —— Swagger UI

快速產製時,可直接至swagger-ui github下載整個dist內容,此為展示網站的靜態檔,只要更換index.html為自己伺服器的swagger.json位置即可。


#swagger, swagger-js, editor, ui, swagger.json, API, 文檔

留言