Skip to content

fix(docs): set root_path so /_svc/audit/docs renders - #18

Merged
man4ish merged 1 commit into
mainfrom
fix/docs-root-path
Sep 13, 2026
Merged

man4ish merged 1 commit into
mainfrom
fix/docs-root-path

Conversation

@man4ish

@man4ish man4ish commented Sep 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Same missing-root_path bug as auth-service and (originally) toolserver: FastAPI's default /docs page requests openapi.json relative to the site root unless root_path is set, so behind nginx-router's prefix-stripping proxy at /_svc/audit, Swagger UI fetched the Studio SPA's index.html instead of the real spec.
  • Sets root_path="/_svc/audit" on the FastAPI() app (this service's actual mount point behind nginx-router is /_svc/audit, not /_svc/security-audit).

Refs OmniBioAI/omnibioai-studio#82.

Test plan

  • Built the image locally (this service's dev compose entry has no build: context, only image:) and recreated the container to pick up the fix.
  • Verified /_svc/audit/docs with Playwright: all 4 operation blocks (/health, /audit/test, /audit/events, /audit/events/safe) render, 10 schemas populated, no parser error, no console errors.

🤖 Generated with Claude Code

https://claude.ai/code/session_011MvEwFRKwmMy94dReYy9LL

Same missing-root_path bug as auth-service and (originally) toolserver:
FastAPI's default /docs page requests openapi.json relative to the
site root unless root_path is set, so behind nginx-router's
prefix-stripping proxy at /_svc/audit, Swagger UI fetched the Studio
SPA's index.html instead of the spec. See omnibioai-studio#82.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011MvEwFRKwmMy94dReYy9LL
@man4ish
man4ish merged commit 499c91f into main Sep 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant