From 00bad3728c02075cf109f56174ffca62dc9d054a Mon Sep 17 00:00:00 2001
From: Chris Pastl <chris@crispybits.app>
Date: Tue, 16 Apr 2024 16:42:37 +0200
Subject: [PATCH] Refactor: add annotations for APIDayScheduleViewSet

---
 program/views.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/program/views.py b/program/views.py
index b9796c72..dfd25ac3 100644
--- a/program/views.py
+++ b/program/views.py
@@ -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(
     mixins.ListModelMixin,
     viewsets.GenericViewSet,
-- 
GitLab