View swagger.json using swagger UI

View swagger.json using swagger UI
Photo by Sigmund / Unsplash

If you have access to a swagger.json file but not the UI you can save the file locally and then run the following npx open-swagger-ui ./swagger.json and browse to http://127.0.0.1:3355/ to be able to view it via the Swagger UI.

Swagger UI