Skip to content

routes

Classes:

Functions:

ManifestReadDTO

Bases: DataclassDTO[ManifestRecord]

Data transfer object for reading manifest records.

get_content async

get_content(
    session: AsyncSession, content_id: UUID
) -> ContentRecord

Get a specific content record by ID.

get_content_data async

get_content_data(
    session: AsyncSession,
    registry: Registry,
    content_id: UUID,
) -> Stream

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.