Skip to content

docs(api): publish MyFestival OpenAPI spec via Redoc at /api-docs/ - #428

Merged
richardthe3rd merged 4 commits into
mainfrom
claude/festival-api-spec-docs-5novmi
Jun 13, 2026
Merged

docs(api): publish MyFestival OpenAPI spec via Redoc at /api-docs/#428
richardthe3rd merged 4 commits into
mainfrom
claude/festival-api-spec-docs-5novmi

Conversation

@richardthe3rd

Copy link
Copy Markdown
Owner

Adds a Redoc-rendered API docs page at /api-docs/ in the Cloudflare Pages
deployment. The OpenAPI spec is generated from proto at build time (not
committed), consistent with the proto-in-CI pattern from #426.

  • web/api-docs/index.html: Redoc page loading openapi.yaml from jsDelivr CDN
  • web/api-docs/.gitignore: openapi.yaml is generated, not committed
  • web/_headers: /api-docs/* CSP override allowing cdn.jsdelivr.net for Redoc
  • ci.yml build-web: buf generate + copy openapi.yaml before flutter build
  • mise.dev.toml proto:generate: also copies to web/api-docs/ for local dev

https://claude.ai/code/session_015uTnGiC56cEELZMH2cQQU4

claude added 2 commits June 13, 2026 15:51
Adds a Redoc-rendered API docs page at /api-docs/ in the Cloudflare Pages
deployment. The OpenAPI spec is generated from proto at build time (not
committed), consistent with the proto-in-CI pattern from #426.

- web/api-docs/index.html: Redoc page loading openapi.yaml from jsDelivr CDN
- web/api-docs/.gitignore: openapi.yaml is generated, not committed
- web/_headers: /api-docs/* CSP override allowing cdn.jsdelivr.net for Redoc
- ci.yml build-web: buf generate + copy openapi.yaml before flutter build
- mise.dev.toml proto:generate: also copies to web/api-docs/ for local dev

https://claude.ai/code/session_015uTnGiC56cEELZMH2cQQU4
@codecov

codecov Bot commented Jun 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Cloudflare Pages Preview

Your preview deployment is ready!

Preview URL: https://claude-festival-api-spec-doc.staging-cambeerfestival.pages.dev

This preview will be automatically updated when you push new commits to this PR.

Cloudflare Pages does not resolve implicit directory indexes before
evaluating _redirects rewrite rules, so /api-docs/ was being caught by
/* /index.html 200 before the Redoc page could be served.

Adding explicit /api-docs and /api-docs/ rules before the catch-all
routes those two paths to /api-docs/index.html directly.

https://claude.ai/code/session_015uTnGiC56cEELZMH2cQQU4
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Cloudflare Pages Preview

Your preview deployment is ready!

Preview URL: https://claude-festival-api-spec-doc.staging-cambeerfestival.pages.dev

This preview will be automatically updated when you push new commits to this PR.

Downloading redoc.standalone.js at build time (CI) and local dev
(proto:generate) so it is served from 'self', which the existing
Flutter CSP already allows. Removes the /api-docs/* CSP override
that was added to permit cdn.jsdelivr.net.

https://claude.ai/code/session_015uTnGiC56cEELZMH2cQQU4
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Cloudflare Pages Preview

Your preview deployment is ready!

Preview URL: https://claude-festival-api-spec-doc.staging-cambeerfestival.pages.dev

This preview will be automatically updated when you push new commits to this PR.

@richardthe3rd
richardthe3rd merged commit b6fcf11 into main Jun 13, 2026
15 checks passed
@github-actions github-actions Bot mentioned this pull request Jun 13, 2026
@github-actions github-actions Bot mentioned this pull request Jul 18, 2026
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.

2 participants