Noticelists
get_all_noticelists
async
get_all_noticelists(auth: Annotated[Auth, Depends(authorize(HYBRID))], db: Annotated[Session, Depends(get_db)]) -> list[GetAllNoticelists]
Retrieve a list of all noticelists.
args:
-
the user’s authentification status
-
the current database
returns:
- all notice lists as a list
get_noticelist
async
get_noticelist(auth: Annotated[Auth, Depends(authorize(HYBRID))], db: Annotated[Session, Depends(get_db)], noticelist_id: Annotated[int, Path(alias=noticelistId)]) -> NoticelistResponse
Retrieve details of a specific noticelist by its ID.
args:
-
the user’s authentification status
-
the current database
-
the notice list id
returns:
- the details of the notice list
get_noticelist_depr
async
get_noticelist_depr(auth: Annotated[Auth, Depends(authorize(HYBRID))], db: Annotated[Session, Depends(get_db)], noticelist_id: Annotated[int, Path(alias=noticelistId)]) -> NoticelistResponse
Deprecated. Retrieve details of a specific noticelist by its ID using the old route.
args:
-
the user’s authentification status
-
the current database
-
the id of the notice list
returns:
- the details of the notice list
post_toggleEnable_noticelist
async
post_toggleEnable_noticelist(auth: Annotated[Auth, Depends(authorize(HYBRID, [SITE_ADMIN]))], db: Annotated[Session, Depends(get_db)], noticelist_id: Annotated[int, Path(alias=noticelistId)]) -> StandardStatusIdentifiedResponse
Disable/Enable a specific noticelist by its ID.
args:
-
the user’s authentification status
-
the current database
-
the notice list id
returns:
- the enabled/disabled notice list
update_noticelist_depr
async
update_noticelist_depr(auth: Annotated[Auth, Depends(authorize(HYBRID, [SITE_ADMIN]))], db: Annotated[Session, Depends(get_db)]) -> StandardStatusResponse
Deprecated. Update all noticelists.
args:
-
the user’s authentification status
-
the current database
returns:
- all updated notice lists
update_noticelists
async
update_noticelists(auth: Annotated[Auth, Depends(authorize(HYBRID, [SITE_ADMIN]))], db: Annotated[Session, Depends(get_db)]) -> StandardStatusResponse
Update all noticelists.
args:
-
the user’s authentification status
-
the current database
returns:
- all updated notice lists