The Swagger UI demo is available at the following link.

https://petstore.swagger.io/

By appending ?url=(URL to a JSON or YAML file) to the above URL, you can specify the initial specification to display.

Here, we will use the following publicly available examples.

https://github.com/OAI/OpenAPI-Specification

For example, you can specify it as follows.

https://petstore.swagger.io/?url=https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/api-with-examples.yaml

I hope this serves as a useful reference when sharing specifications with others.