From: Michael Tremer Date: Mon, 2 Mar 2026 17:57:20 +0000 (+0000) Subject: api: Deprecate the old reports endpoints in the lists handler X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d58033cc2dd050be0b40f2ce4dbdb39bacbdb68;p=dbl.git api: Deprecate the old reports endpoints in the lists handler Signed-off-by: Michael Tremer --- diff --git a/src/dbl/api/lists.py b/src/dbl/api/lists.py index 95c9827..558d5c3 100644 --- a/src/dbl/api/lists.py +++ b/src/dbl/api/lists.py @@ -76,7 +76,7 @@ async def get_list_history( async def get_list_sources(list = fastapi.Depends(get_list_from_path)) -> typing.List[sources.Source]: return list.sources -@router.get("/{list}/reports") +@router.get("/{list}/reports", deprecated=True) async def get_list_reports( list = fastapi.Depends(get_list_from_path), open: bool | None = None, @@ -104,7 +104,7 @@ class CreateReport(pydantic.BaseModel): block : bool = True -@router.post("/{list}/reports") +@router.post("/{list}/reports", deprecated=True) async def list_report( report: CreateReport, list = fastapi.Depends(get_list_from_path),