0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

手元にswagger.yamlがある時にdockerでswagger-uiを手軽に見る

Posted at

http://editor.swagger.io/#/
このサイトにyaml突っ込めばすぐ見れるが、クソ長yamlだと動作が重いこともあるのでlocalhostでサクサク見たい人は以下のdockerコマンドを叩いて渡れ最上川

コマンド

初回コンテナ立ち上げ
docker run -d -p 8040:8080 -e API_URL=your-api.yaml --name your-api-swagger -v /絶対パス/your-api.yaml:/usr/share/nginx/html/your-api.yaml swaggerapi/swagger-ui:v3.0.5

その他コマンド
docker stop your-api-swagger
docker run your-api-swagger
docker rm your-api-swagger

アクセス

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?