src/dazzle_back/runtime/route_generator.py¶
Generated: 2026-03-30T04:38:48.072017+00:00
Commit: 615f1354a103
Language: python
Scope: dazzle_back
Purpose¶
Route generator - generates FastAPI routes from EndpointSpec.
This module creates FastAPI routers and routes from backend specifications.
Key Exports¶
create_list_handlercreate_read_handlercreate_create_handlercreate_update_handlercreate_delete_handlercreate_custom_handlercreate_neighborhood_handlercreate_shortest_path_handlercreate_components_handlerRouteGeneratorgenerate_crud_routesgenerate_routegenerate_all_routesrouterlist_itemsget_itemcreate_itemupdate_itemdelete_itemhandler_with_input
Dependencies¶
Imports¶
collections.abc.Callableenum.Enumtyping.TYPE_CHECKINGtyping.Anyuuid.UUIDpydantic.BaseModeldazzle.core.strings.to_api_pluraldazzle_back.runtime._fastapi_compat.FASTAPI_AVAILABLEdazzle_back.runtime._fastapi_compat.Dependsdazzle_back.runtime._fastapi_compat.HTMLResponsedazzle_back.runtime._fastapi_compat.HTTPExceptiondazzle_back.runtime._fastapi_compat.Querydazzle_back.runtime._fastapi_compat.Requestdazzle_back.runtime._fastapi_compat.APIRouterdazzle_back.runtime.repository.ConstraintViolationErrordazzle_back.specs.endpoint.EndpointSpecdazzle_back.specs.endpoint.HttpMethoddazzle_back.specs.service.OperationKinddazzle_back.specs.service.ServiceSpecdazzle_back.runtime.auth.AuthContext
Event Interactions¶
None detected.
Invariants and Assumptions¶
- Validates: via condition must have at least one entity binding
-
Treat None values as missing — they must not bypass the deny sentinel (#591).¶
- Assert: optional_auth_dep is not None # narrowing for mypy
- Assert: cedar_access_spec is not None # narrowing for mypy
-
need row-level isolation must add explicit scope: blocks.¶
Tests¶
tests/integration/test_runtime_e2e.pytests/integration/test_runtime_pipeline.pytests/unit/test_runtime_test_routes.pytests/unit/test_runtime_services.pytests/unit/test_runtime_mcp_tools.py
Notes¶
This page was automatically generated by tools/gen_reference_docs.py.