Skip to content
Snippets Groups Projects
Commit 00bad372 authored by Chris Pastl's avatar Chris Pastl
Browse files

Refactor: add annotations for APIDayScheduleViewSet

parent 95acd00f
No related branches found
No related tags found
1 merge request!41Refactor endpoint /program/year/month/day
Pipeline #7891 passed
...@@ -143,6 +143,17 @@ def gap_entry(*, gap_start: datetime, gap_end: datetime) -> dict: ...@@ -143,6 +143,17 @@ def gap_entry(*, gap_start: datetime, gap_end: datetime) -> dict:
} }
@extend_schema_view(
create=extend_schema(summary="List schedule for a specific date."),
list=extend_schema(
summary="List schedule for a specific date.",
description=(
"Returns a list of the schedule for a specific date."
"Expects parameters `year` (int), `month` (int), and `day` (int) as url components."
"e.g. /program/2024/01/31/"
),
),
)
class APIDayScheduleViewSet( class APIDayScheduleViewSet(
mixins.ListModelMixin, mixins.ListModelMixin,
viewsets.GenericViewSet, viewsets.GenericViewSet,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment