Choose the pattern before changing the deployment
The name ‘Swagger UI’ can hide two different requirements. One team needs a running web app with Try it out, plugins, and custom routing. Another simply needs colleagues or clients to read the latest OpenAPI contract. Those should not inherit the same hosting and security design.
| What viewers need | Better pattern | Why |
|---|---|---|
| Interactive requests or custom Swagger UI behavior | Protect the existing app with an identity-aware proxy | The application, assets, and request flow stay together |
| A private, read-only API reference | Publish the OpenAPI file behind Google access | There is no separate docs application to operate |
| Public developer onboarding | Use a developer portal | Public navigation, credentials, SDKs, and onboarding need a broader system |