Swagger installation on localhost
sudo apt update
sudo apt install -y docker.io docker-compose
docker pull docker.swagger.io/swaggerapi/swagger-ui
#Load API definition local .json file. using -v point to the location of this .json file
sudo docker run -p 85:8080 -e SWAGGER_JSON=/spec/openapi.json -v /h
/home/kali/swagger-docs:/spec docker.swagger.io/swaggerapi/swagger-ui
#start the swagger UI
http://127.0.0.1:85/
npx @redocly/cli bundle openapi.yaml -o bundled.yamlLast updated