-
Notifications
You must be signed in to change notification settings - Fork 73
Examples
Thomas Pollet edited this page Mar 8, 2026
·
2 revisions
- Applies to: Flask and FastAPI
- Best source:
examples/README.md - Related pages: Quickstart (Flask), Quickstart (FastAPI), RPC
This page is a task-based catalog of the examples that currently exist in the repository.
-
examples/mini_app.py— smallest Flask app -
examples/mini_fastapi_app.py— smallest FastAPI app
-
examples/demo_relationship.py— simpleUser/Bookrelationship example -
examples/mini_examples/ex04_relationship.py— compact relationship example -
examples/mini_examples/ex05_secret_relationship.py— hidden relationship exposure
-
examples/mini_examples/ex06_filtering.py— custom filtering strategy -
examples/mini_examples/ex11_search.py— search helper method exposure
-
examples/mini_examples/ex01_to_dict.py— overrideto_dict -
examples/mini_examples/ex03_jsonapi_attr.py— computed attributes with@jsonapi_attr
-
examples/mini_examples/ex08_rpc.py— JSON:API RPC basics -
examples/demo_pythonanywhere_com.py— broad Flask showcase -
examples/demo_fastapi.py— broad FastAPI showcase
-
examples/mini_examples/ex15_http_hook.py— HTTP lifecycle hooks -
examples/mini_examples/ex16_perm.py—_s_check_perm -
examples/authentication/demo_auth.py— HTTP Basic auth -
examples/authentication/demo_jwt.py— JWT auth example -
examples/authentication/demo_post_auth.py— write-method auth
-
examples/demo_stateless.py— stateless resource example -
examples/mini_examples/ex09_stateless.py— mini stateless example -
examples/mini_examples/ex10_jabase.py—JABase
-
examples/mini_examples/ex12_swagger.py— custom swagger metadata -
examples/mini_examples/ex13_prefix.py— custom URL prefix -
examples/mini_examples/ex14_flask_dispatch.py— Flask dispatch integration
-
examples/docker_sqlite_demo/README.md— SQLite-only demo container
-
examples/demo_geoalchemy.py— GeoAlchemy / PostGIS -
examples/demo_full.py— compatibility wrapper -
examples/demo_devto.py— compact older demo variant
Older expose-existing-database material belongs on Existing Databases (Legacy), not in the main example catalog.
- 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