-
Notifications
You must be signed in to change notification settings - Fork 73
Configuration Reference
Thomas Pollet edited this page Mar 8, 2026
·
1 revision
- Applies to: Flask and FastAPI
- Best sources:
safrs/config.py,README.md - Related pages: Sorting, Pagination, and Sparse Fieldsets, Debug Logs
Current SAFRS code prefers application configuration and environment variables. The compatibility layer in safrs/config.py still exists, but most settings are treated as backward-compatible fallbacks.
DEFAULT_PAGE_LIMITMAX_PAGE_LIMITMAX_PAGE_OFFSETBIG_QUERY_THRESHOLD
OBJECT_ID_SUFFIXRESOURCE_URL_FMTINSTANCE_URL_FMT- related endpoint-format settings
ENABLE_RELATIONSHIPS
Debug behavior is tied to log-level handling. See Debug Logs.
- prefer
app.configwhere possible - use environment variables as deployment overrides
- treat older config module constants as compatibility support, not the main extension surface
- 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