LoginSignup
0
0

More than 1 year has passed since last update.

[API仕様書]yamlから静的html生成

Posted at

swaggerなどを使用してAPI仕様書を作成した場合、yamlから静的htmlを生成したい場合がある。
その場合は以下で生成可能。
※npmをインストールするのが面倒な場合はAWS CloudShellを使えばすでにnpmが入っている。

sudo npm install -g redoc-cli
redoc-cli build yamlファイル名 -o 出力ファイル名

ただ以下の方が推奨っぽい
結果は同じ

sudo npm install -g @redocly/cli
redocly build-docs yamlファイル名 -o 出力ファイル名
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0