-
Notifications
You must be signed in to change notification settings - Fork 73
Custom Documentation
Thomas Pollet edited this page Mar 8, 2026
·
14 revisions
- Applies to: Flask and FastAPI
- Best examples:
examples/mini_examples/ex12_swagger.py,examples/demo_fastapi.py - Related pages: Customization, Column Types, Quickstart (FastAPI)
Classic SAFRS generates Swagger/OpenAPI documentation as part of the Flask integration.
Useful customization areas include:
- model docstrings
- RPC docstrings
custom_swagger- custom prefixes and spec URLs
examples/mini_examples/ex12_swagger.pyexamples/mini_examples/ex13_prefix.pyexamples/mini_examples/ex14_flask_dispatch.py
FastAPI uses its own OpenAPI machinery. The SAFRS FastAPI adapter integrates with that system instead of using the Flask swagger generator directly.
That means:
- FastAPI docs live under
/docs - schema generation is OpenAPI-first
- Flask-only swagger customizations do not map one-to-one
- Home
- Installation
- Quickstart (Flask)
- Quickstart (FastAPI)
- JSON:API Basics
- Relationships and Includes
- Filtering
- Sorting, Pagination, and Sparse Fieldsets
- Content Types and Errors
- Bulk Requests
- RPC / Custom Methods
- Customization
- Security and Access Control
- Stateless Endpoints / JABase
- Performance
- Examples
- Existing Databases (Legacy)
- PostGIS / GeoAlchemy2
- Docker / Deployment
- Troubleshooting
- Reference: SAFRSBase
- Reference: SAFRSBase Customization