0
1

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 UIを使ってみる

Last updated at Posted at 2021-02-17

Swagger UIを使ってみたときのメモです。

  • Swagger Editorを開く
    https://editor.swagger.io/

  • Generate Serverから、nodejs-serverを選択して、zipファイルをダウンロード
    image.png

  • zipファイルを解凍

  • コマンドプロンプトで以下実行

$ cd (解凍したファイルの場所)\nodejs-server-server-generated\nodejs-server-server
$ npm install
$ node index.js
Your server is listening on port 8080 (http://localhost:8080)
Swagger-ui is available on http://localhost:8080/docs
  • http://localhost:8080/docs にアクセスすると、Swagger UIが見れる。
    image.png
  • [Ctrl]+[c] 2回で終了。(コマンドプロンプトの場合)

参考サイト

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?