developer-docs: publish the REST API OpenAPI 3.0 specification - #513
developer-docs: publish the REST API OpenAPI 3.0 specification#513vihar wants to merge 1 commit into
Conversation
No machine-readable spec of the public API existed anywhere online — drf-spectacular is disabled on Plane Cloud and the docs only explained self-host generation. Publish the generated spec (130 operations, production server first) at /openapi.json and /openapi.yaml, link it from llms.txt and the API reference, and point the OpenAPI page at the hosted files before the self-host instructions. Generated from makeplane/plane@preview with: ENABLE_DRF_SPECTACULAR=1 python manage.py spectacular Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe PR documents published OpenAPI JSON and YAML specifications, adds self-hosted generation guidance, updates LLM documentation links, and excludes generated specifications from formatter processing. ChangesOpenAPI documentation
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This PR publishes the REST API OpenAPI specification and updates documentation links so API consumers can discover it. No actionable merge-blocking risk remains; it is merge-ready after normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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
ENABLE_DRF_SPECTACULARis off on Plane Cloud (api.plane.so/api/schema/404s) and the docs only described self-host generation. This was the single biggest gap in the is-agentic audit for developers.plane.so.https://api.plane.so) first so generators and agents default to it; the spec is otherwise exactly what drf-spectacular emits frommakeplane/plane@preview(ENABLE_DRF_SPECTACULAR=1 python manage.py spectacular).Maintenance note: the spec is a committed snapshot and should be regenerated when the API changes — the generation command is documented on the OpenAPI page and in the commit message. Happy to add a CI job for that as a follow-up if wanted.
Test plan
pnpm checkandpnpm --filter developer-docs buildpass (verified locally)/openapi.json(valid JSON, production server first) and llms.txt links it (verified locally)curl -s https://developers.plane.so/openapi.json | jq .info.titlereturns "The Plane REST API"Made with Cursor
Summary by CodeRabbit