BuildRoutesUsecase
fastapi_gateway_auto_generate.domain.usecases.BuildRoutesUsecase.BuildRoutesUsecase()
¶
The usecase responsible for adding services to the FastAPI object.
Source code in fastapi_gateway_auto_generate/domain/usecases/BuildRoutesUsecase.py
__factory_func(route_model, _import)
¶
Dynamic generation of functions for adding to the FastAPI object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
services_result |
list[dict[str, Any]
|
The Config object with its configuration. |
required |
Source code in fastapi_gateway_auto_generate/domain/usecases/BuildRoutesUsecase.py
__import_model(service_model_name)
¶
Dynamic import of Pydantic models.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
service_model_name |
list[dict[str, Any]
|
The Config object with its configuration. |
required |
Source code in fastapi_gateway_auto_generate/domain/usecases/BuildRoutesUsecase.py
execute(services_result, fast_api_app)
¶
Launch execution of usecase
Parameters:
Name | Type | Description | Default |
---|---|---|---|
services_result |
list[dict[str, Any]
|
The Config object with its configuration. |
required |