LoginSignup
0
0

More than 3 years have passed since last update.

EC2サーバーに RapiDocを導入

Posted at

RapiDocとは

swaggerベースの、APIドキュメント作成ツール。

起動

Dockerを利用して立ち上げるのが簡単です。

  1. Dockerインストール

    yum install -y docker
    systemctl status docker.service
    
  2. RapiDocを立ち上げ
    設定ファイルをenv.listファイルに放り投げ、起動します。
    諸事情により、ホスト側のポートを8081としています。

    echo SPEC_URL="https://petstore.swagger.io/v2/swagger.json" >> env.list
    echo RAPIDOC_OPTIONS="theme='dark'" >> env.list
    docker run -it --rm -p 8081:80 --env-file ./env.list mrin9/rapidoc
    
  3. 確認
    http://abcd.com:8081/
    screencapture-alc-eye-labs-8081-2021-02-24-19_07_14 (1).png

付録

見た目に関して、細かくカスタマイズできるようです。
https://mrin9.github.io/RapiDoc/api.html#att-colors

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