René's URL Explorer Experiment


Title: feat!: serve Swagger UI at engine mount root by mortik · Pull Request #37 · openapi-ruby/openapi-ruby · GitHub

Open Graph Title: feat!: serve Swagger UI at engine mount root by mortik · Pull Request #37 · openapi-ruby/openapi-ruby

X Title: feat!: serve Swagger UI at engine mount root by mortik · Pull Request #37 · openapi-ruby/openapi-ruby

Description: Summary Move the optional Swagger UI from /api-docs/ui to the engine's mount root (/api-docs), matching the convention used by rswag, grape-swagger, and other Rails engines. The gate is now route-level: when config.ui_enabled is false (the default), the UI routes are not drawn and /api-docs returns a real Rails 404 instead of a controller-rendered one. The schema endpoints (/api-docs/schemas/:name) are unaffected — they're always served when the engine is mounted, supporting the "downstream tooling needs the schema but I don't want an interactive explorer" case. Drops the unused config.ui_path accessor — it was defined but never read anywhere. Breaking changes Swagger UI is now served at the engine mount root (/api-docs) instead of /ui. Update bookmarks/links. config.ui_path has been removed. Setting it now raises NoMethodError. Test plan bundle exec rspec — 297 examples, 0 failures Manual: mount engine, set ui_enabled = true, visit /api-docs → Swagger UI renders Manual: mount engine, leave ui_enabled = false, visit /api-docs → 404; /api-docs/schemas/public_api.yaml still serves 🤖 Generated with Claude Code

Open Graph Description: Summary Move the optional Swagger UI from /api-docs/ui to the engine's mount root (/api-docs), matching the convention used by rswag, grape-swagger, and other Rails engines. The gate is now ro...

X Description: Summary Move the optional Swagger UI from /api-docs/ui to the engine's mount root (/api-docs), matching the convention used by rswag, grape-swagger, and other Rails engines. The gate is no...

Opengraph URL: https://github.com/openapi-ruby/openapi-ruby/pull/37

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9f359c9c-ae79-b8e4-1a37-32b4f32bca3a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA676:363D8E:1E4B9DF:267BDB9:6B014B7E
html-safe-noncebe00f6766cbf7e80dd67925ce66218db598386501badd8a04e4146d44d79c7ca
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjc2OjM2M0Q4RToxRTRCOURGOjI2N0JEQjk6NkIwMTRCN0UiLCJ2aXNpdG9yX2lkIjoiMjg5Mjc2OTg0MjY5ODQ3MjMxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace4258d09c0889f0441e86dbf87ff4694d0939b99f913cd447b3c554a01336df6
hovercard-subject-tagpull_request:3832965174
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/openapi-ruby/openapi-ruby/pull/37/files
twitter:imagehttps://avatars.githubusercontent.com/u/517703?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/517703?s=400&v=4
og:image:altSummary Move the optional Swagger UI from /api-docs/ui to the engine's mount root (/api-docs), matching the convention used by rswag, grape-swagger, and other Rails engines. The gate is now ro...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/openapi-ruby/openapi-ruby git https://github.com/openapi-ruby/openapi-ruby.git
octolytics-dimension-user_id276587259
octolytics-dimension-user_loginopenapi-ruby
octolytics-dimension-repository_id1211860664
octolytics-dimension-repository_nwoopenapi-ruby/openapi-ruby
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1211860664
octolytics-dimension-repository_network_root_nwoopenapi-ruby/openapi-ruby
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/openapi-ruby/openapi-ruby/pull/37/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenapi-ruby%2Fopenapi-ruby%2Fpull%2F37%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenapi-ruby%2Fopenapi-ruby%2Fpull%2F37%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=openapi-ruby%2Fopenapi-ruby
Reloadhttps://github.com/openapi-ruby/openapi-ruby/pull/37/files
Reloadhttps://github.com/openapi-ruby/openapi-ruby/pull/37/files
Reloadhttps://github.com/openapi-ruby/openapi-ruby/pull/37/files
openapi-rubyhttps://github.com/openapi-ruby
openapi-rubyhttps://github.com/openapi-ruby/openapi-ruby
Codehttps://github.com/openapi-ruby/openapi-ruby
Issues1 (1)https://github.com/openapi-ruby/openapi-ruby/issues
Pull requests2 (2)https://github.com/openapi-ruby/openapi-ruby/pulls
Actionshttps://github.com/openapi-ruby/openapi-ruby/actions
Projectshttps://github.com/openapi-ruby/openapi-ruby/projects
Security and qualityhttps://github.com/openapi-ruby/openapi-ruby/security
Insightshttps://github.com/openapi-ruby/openapi-ruby/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fopenapi-ruby%2Fopenapi-ruby%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fopenapi-ruby%2Fopenapi-ruby%2Fissues%2Fnew%2Fchoose
mortikhttps://github.com/mortik
mainhttps://github.com/openapi-ruby/openapi-ruby/tree/main
feat/ui-at-engine-roothttps://github.com/openapi-ruby/openapi-ruby/tree/feat/ui-at-engine-root
Conversation 0 https://github.com/openapi-ruby/openapi-ruby/pull/37
Commits 1 https://github.com/openapi-ruby/openapi-ruby/pull/37/commits
Checks 12 https://github.com/openapi-ruby/openapi-ruby/pull/37/checks
Files changed https://github.com/openapi-ruby/openapi-ruby/pull/37/files
Please reload this pagehttps://github.com/openapi-ruby/openapi-ruby/pull/37/files
feat!: serve Swagger UI at engine mount root https://github.com/openapi-ruby/openapi-ruby/pull/37/files#top
Show all changes 1 commit https://github.com/openapi-ruby/openapi-ruby/pull/37/files
aca471d feat!: serve Swagger UI at engine mount root mortik Jun 9, 2026 https://github.com/openapi-ruby/openapi-ruby/pull/37/commits/aca471d3656687dd708cf2f4a8bdcc252c44ff0f
Clear filters https://github.com/openapi-ruby/openapi-ruby/pull/37/files
Please reload this pagehttps://github.com/openapi-ruby/openapi-ruby/pull/37/files
Please reload this pagehttps://github.com/openapi-ruby/openapi-ruby/pull/37/files
README.md https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
ui_controller.rb https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-91c8ca8fff399336441be57aa8c5305b2720b19bc8aecc8f12e2387b7155c3de
routes.rb https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-959bc9abc46a55332bb64d5155a79323afa75a50ec1a2137ddd22d926f62c6c5
initializer.rb.tt https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-1ab74a2edd57553b23ece9309fca4b0b34fd16b715c080067f282e62f2fe75ad
configuration.rb https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-73d2e8485869281dcc5d0c8e0439a53ff822c63d8494bcafb91f2e93937cebcd
openapi_ruby.rb https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-0dd2d9a77b6ec17b17b4e5eb58cd104fd5dce1b303c7639e54cdbb5ca2240c4f
configuration_spec.rb https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-b60882377fa97c7b2649111200d2118a1be4fc88af7fed83d1d828a76de2ae9e
README.mdhttps://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/openapi-ruby/openapi-ruby/blob/aca471d3656687dd708cf2f4a8bdcc252c44ff0f/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/openapi-ruby/openapi-ruby/pull/37/{{ revealButtonHref }}
https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
app/controllers/openapi_ruby/ui_controller.rbhttps://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-91c8ca8fff399336441be57aa8c5305b2720b19bc8aecc8f12e2387b7155c3de
View file https://github.com/openapi-ruby/openapi-ruby/blob/aca471d3656687dd708cf2f4a8bdcc252c44ff0f/app/controllers/openapi_ruby/ui_controller.rb
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/openapi-ruby/openapi-ruby/pull/37/{{ revealButtonHref }}
https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-91c8ca8fff399336441be57aa8c5305b2720b19bc8aecc8f12e2387b7155c3de
https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-91c8ca8fff399336441be57aa8c5305b2720b19bc8aecc8f12e2387b7155c3de
https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-91c8ca8fff399336441be57aa8c5305b2720b19bc8aecc8f12e2387b7155c3de
config/routes.rbhttps://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-959bc9abc46a55332bb64d5155a79323afa75a50ec1a2137ddd22d926f62c6c5
View file https://github.com/openapi-ruby/openapi-ruby/blob/aca471d3656687dd708cf2f4a8bdcc252c44ff0f/config/routes.rb
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/openapi-ruby/openapi-ruby/pull/37/{{ revealButtonHref }}
https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-959bc9abc46a55332bb64d5155a79323afa75a50ec1a2137ddd22d926f62c6c5
lib/generators/openapi_ruby/install/templates/initializer.rb.tthttps://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-1ab74a2edd57553b23ece9309fca4b0b34fd16b715c080067f282e62f2fe75ad
View file https://github.com/openapi-ruby/openapi-ruby/blob/aca471d3656687dd708cf2f4a8bdcc252c44ff0f/lib/generators/openapi_ruby/install/templates/initializer.rb.tt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/openapi-ruby/openapi-ruby/pull/37/{{ revealButtonHref }}
https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-1ab74a2edd57553b23ece9309fca4b0b34fd16b715c080067f282e62f2fe75ad
lib/openapi_ruby/configuration.rbhttps://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-73d2e8485869281dcc5d0c8e0439a53ff822c63d8494bcafb91f2e93937cebcd
View file https://github.com/openapi-ruby/openapi-ruby/blob/aca471d3656687dd708cf2f4a8bdcc252c44ff0f/lib/openapi_ruby/configuration.rb
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/openapi-ruby/openapi-ruby/pull/37/{{ revealButtonHref }}
https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-73d2e8485869281dcc5d0c8e0439a53ff822c63d8494bcafb91f2e93937cebcd
https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-73d2e8485869281dcc5d0c8e0439a53ff822c63d8494bcafb91f2e93937cebcd
https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-73d2e8485869281dcc5d0c8e0439a53ff822c63d8494bcafb91f2e93937cebcd
spec/dummy/config/initializers/openapi_ruby.rbhttps://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-0dd2d9a77b6ec17b17b4e5eb58cd104fd5dce1b303c7639e54cdbb5ca2240c4f
View file https://github.com/openapi-ruby/openapi-ruby/blob/aca471d3656687dd708cf2f4a8bdcc252c44ff0f/spec/dummy/config/initializers/openapi_ruby.rb
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/openapi-ruby/openapi-ruby/pull/37/{{ revealButtonHref }}
https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-0dd2d9a77b6ec17b17b4e5eb58cd104fd5dce1b303c7639e54cdbb5ca2240c4f
spec/openapi_ruby/configuration_spec.rbhttps://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-b60882377fa97c7b2649111200d2118a1be4fc88af7fed83d1d828a76de2ae9e
View file https://github.com/openapi-ruby/openapi-ruby/blob/aca471d3656687dd708cf2f4a8bdcc252c44ff0f/spec/openapi_ruby/configuration_spec.rb
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/openapi-ruby/openapi-ruby/pull/37/{{ revealButtonHref }}
https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-b60882377fa97c7b2649111200d2118a1be4fc88af7fed83d1d828a76de2ae9e
https://github.com/openapi-ruby/openapi-ruby/pull/37/files#diff-b60882377fa97c7b2649111200d2118a1be4fc88af7fed83d1d828a76de2ae9e
Please reload this pagehttps://github.com/openapi-ruby/openapi-ruby/pull/37/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.