routes
Classes:
-
ManifestReadDTO–Data transfer object for reading manifest records.
Functions:
-
get_content–Get a specific content record by ID.
-
get_content_data–Stream the actual data for a specific content record.
-
get_content_view–Render an HTML view for a specific content record.
-
get_manifest–Get a specific manifest by ID.
-
list_contents–List all content records with pagination and optional filtering.
ManifestReadDTO
get_content
async
get_content(
session: AsyncSession, content_id: UUID
) -> ContentRecord
Get a specific content record by ID.
get_content_data
async
Stream the actual data for a specific content record.
get_content_view
get_content_view(content_id: UUID) -> Template
Render an HTML view for a specific content record.
get_manifest
async
get_manifest(
session: AsyncSession, manifest_id: UUID
) -> ManifestRecord
Get a specific manifest by ID.
list_contents
async
list_contents(
session: AsyncSession,
manifest_id: Annotated[
UUID | None,
Parameter(description="Filter by manifest ID"),
] = None,
limit: Annotated[int, Parameter(gt=0, le=1000)] = 100,
offset: Annotated[int, Parameter(ge=0)] = 0,
) -> list[ContentRecord]
List all content records with pagination and optional filtering.