dakweb.routers.changelog

Functions

changelogs(response, search_term[, db])

Legacy endpoint; prefer /v2/changelogs.

changelogs_v2([search_term, source, since, ...])

Improved changelogs endpoint with date range & pagination.

Classes

Changelog(*, id, date, source, version, ...)

ChangelogResponse(*, count, limit, offset, ...)

ChangelogV1(*, date, source, version, ...)

class dakweb.routers.changelog.Changelog(*, id: int, date: str, source: str, version: str, changedby: str, changelog: str)[source]
_abc_impl = <_abc._abc_data object>
changedby: str
changelog: str
date: str
id: int
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

source: str
version: str
class dakweb.routers.changelog.ChangelogResponse(*, count: int, limit: int, offset: int, has_more: bool, results: list[Changelog])[source]
_abc_impl = <_abc._abc_data object>
count: int
has_more: bool
limit: int
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

offset: int
results: list[Changelog]
class dakweb.routers.changelog.ChangelogV1(*, date: str, source: str, version: str, changedby: str, changelog: str)[source]
_abc_impl = <_abc._abc_data object>
changedby: str
changelog: str
date: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

source: str
version: str
dakweb.routers.changelog.changelogs(response: ~starlette.responses.Response, search_term: ~typing.Annotated[str, ~pydantic.functional_validators.AfterValidator(func=~.str.strip), Query(PydanticUndefined)], db: ~sqlalchemy.orm.session.Session = Depends(get_db)) list[ChangelogV1][source]

Legacy endpoint; prefer /v2/changelogs.

Returns all matching rows (no pagination). Use only for backward compatibility.

dakweb.routers.changelog.changelogs_v2(search_term: ~typing.Annotated[~typing.Annotated[str, ~pydantic.functional_validators.AfterValidator(func=~.str.strip)] | None, Query(PydanticUndefined)] = None, source: ~typing.Annotated[~typing.Annotated[str, ~pydantic.functional_validators.AfterValidator(func=~.str.strip)] | None, Query(PydanticUndefined)] = None, since: ~typing.Annotated[~datetime.datetime | None, Query(PydanticUndefined)] = None, till: ~typing.Annotated[~datetime.datetime | None, Query(PydanticUndefined)] = None, since_id: ~typing.Annotated[int | None, Query(PydanticUndefined)] = None, limit: ~typing.Annotated[int, Query(PydanticUndefined)] = 50, offset: ~typing.Annotated[int, Query(PydanticUndefined)] = 0, db: ~sqlalchemy.orm.session.Session = Depends(get_db)) ChangelogResponse[source]

Improved changelogs endpoint with date range & pagination.