trolldb.api.routes.databases module
The module which handles all requests related to getting the list of databases and collections.
Note
For more information on the API server, see the automatically generated documentation by FastAPI.
- async trolldb.api.routes.databases.database_names(exclude_defaults: Annotated[bool, fastapi.Query] = True) list[str]
Please consult the auto-generated documentation by FastAPI.
- async trolldb.api.routes.databases.collection_names(db: Annotated[motor.motor_asyncio.AsyncIOMotorDatabase, fastapi.Depends]) list[str]
Please consult the auto-generated documentation by FastAPI.
- async trolldb.api.routes.databases.documents(collection: Annotated[motor.motor_asyncio.AsyncIOMotorCollection, fastapi.Depends]) list[str]
Please consult the auto-generated documentation by FastAPI.
- async trolldb.api.routes.databases.document_by_id(collection: Annotated[motor.motor_asyncio.AsyncIOMotorCollection, fastapi.Depends], _id: Annotated[str, pydantic.functional_validators.AfterValidator]) _DocumentType
Please consult the auto-generated documentation by FastAPI.