dakweb.routers.changelog¶
Functions
|
Legacy endpoint; prefer /v2/changelogs. |
|
Improved changelogs endpoint with date range & pagination. |
Classes
|
|
|
|
|
- class dakweb.routers.changelog.Changelog(*, id: int, date: str, source: str, version: str, changedby: str, changelog: str)[source]¶
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class dakweb.routers.changelog.ChangelogResponse(*, count: int, limit: int, offset: int, has_more: bool, results: list[Changelog])[source]¶
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class dakweb.routers.changelog.ChangelogV1(*, date: str, source: str, version: str, changedby: str, changelog: str)[source]¶
- _abc_impl = <_abc._abc_data object>¶
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- 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.