Main
fastapi_gateway_auto_generate.Generator
¶
Generator(config)
¶
The class responsible for adding automatic service connections to the FastAPI object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config |
Config
|
The Config object with its configuration. |
required |
Source code in fastapi_gateway_auto_generate/Generator.py
fastapi_gateway_auto_generate.Config
¶
Config(fast_api_app, service_management=True, db_path='./', db_name='database', jwt=None)
¶
The Configuration class is intended for configuring the auto-generation of services for the API Gateway.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fast_api_app |
FastAPI
|
Pointer to your FastAPI application. |
required |
service_management |
bool
|
Enable the built-in service manager. |
True
|
db_path |
str
|
The path to the SQLite database. |
'./'
|
jwt |
Optional[Type[T]]
|
The class responsible for protecting the routers. |
None
|
celery_app |
Optional[Celery]
|
The Celery object responsible for transferring large files. |
required |
Source code in fastapi_gateway_auto_generate/Config.py
Warning
The service_management
parameter is temporarily not functioning and will always be set to True
.