[FEAT] Auto-generated OpenAPI docs with drf-spectacular#1868
[FEAT] Auto-generated OpenAPI docs with drf-spectacular#1868chandrasekharan-zipstack wants to merge 1 commit intomainfrom
Conversation
Replace drf-yasg with drf-spectacular for OpenAPI 3.0 schema generation. Add @extend_schema annotations with tags, summaries, and descriptions across all Platform API endpoints. Add help_text to model fields for field-level documentation. Filter schema to curated Platform API surface. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
|



What
@extend_schemaannotations with tags, summaries, and descriptions to all Platform API endpoints (86 endpoints across 6 tags)help_textto model and serializer fields for field-level API documentation/api/v1/doc/and raw schema at/api/v1/doc/schema/Why
How
drf-yasgdependency fordrf-spectacular>=0.27.0inpyproject.tomlSPECTACULAR_SETTINGSinbase.pywith Bearer-only auth, curated tags, and preprocessing/postprocessing hooksdocs/spectacular_hooks.pywith exact path+method whitelist filter@extend_schema/@extend_schema_viewdecorators to all view fileshelp_textto Django model fields (no migrations needed - metadata only)Can this PR break any existing features. If yes, please list possible items. If no, please explain why.
/api/v1/doc/path is preserved.help_texton model fields is metadata-only and does not generate database migrations.Database Migrations
help_textis Django metadata that does not affect the database schema.Env Config
Relevant Docs
Related Issues or PRs
Dependencies Versions
drf-yasg>=1.21.8drf-spectacular>=0.27.0(resolved to 0.29.0)Notes on Testing
/api/v1/doc/serves ReDoc UI/api/v1/doc/schema/?format=jsonreturns valid OpenAPI 3.0 with 86 endpoints across 6 tagsChecklist
I have read and understood the Contribution Guidelines.