Redocとは
- Swaggerで生成したjson/ymlを整形した形でhtml化するためのツール
準備
-
インストール※node.js,npm使用
npm install -g redoc-cli
HTML化
- Swagger公式サンプルのjsonを利用させていただく。
redoc-cli bundle swagger.json -o index.html
実行結果
- 生成されたindex.htmlを開くと下記のように表示される。
Go to list of users who liked
More than 1 year has passed since last update.
インストール※node.js,npm使用
npm install -g redoc-cli
redoc-cli bundle swagger.json -o index.html
Register as a new user and use Qiita more conveniently
Go to list of users who liked