feat(api): document public API authentication#1038
feat(api): document public API authentication#1038KonradStanski wants to merge 3 commits intosourcebot-dev:mainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughUpdated the public OpenAPI document, generation code, and docs to declare bearer and API-key authentication (with a top-level security matrix allowing bearer, API key, or anonymous), added operationId values to seven public endpoints, and removed an example from the version response schema. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
This documents authentication for the public Sourcebot API in the generated OpenAPI spec and Mintlify docs.
Changes:
Details
The spec now documents these auth paths:
X-Sourcebot-Api-Key: sbk_...Authorization: Bearer sbk_...Authorization: Bearer sboa_...for EE OAuth access tokensThe API reference docs now lead users to the runtime spec endpoint and explain how auth works for public API consumers.
Testing
yarn openapi:generateNotes
text/event-stream; OpenAPI does not model typed SSE frames especially well.Closes #101
Summary by CodeRabbit