You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add method to retrieve user information by team ID and corresponding unit tests
* refactor: remove unused import of ObjectId in migrate_add_creator_to_teams command
* refactor: improve code readability in migrate_add_creator_to_teams command and user retrieval method
* feat: enhance watchlist API with pagination and task addition functionality
* refactor: improve formatting of OpenApiResponse descriptions in watchlist API
* fix: correct import path for GetWatchlistTasksResponse in watchlist API
---------
Co-authored-by: Amit Prakash <[email protected]>
description="Add a task to the authenticated user's watchlist.",
71
+
tags=["watchlist"],
72
+
request=CreateWatchlistSerializer,
73
+
responses={
74
+
201: OpenApiResponse(response=CreateWatchlistResponse, description="Task added to watchlist successfully"),
75
+
400: OpenApiResponse(
76
+
response=ApiErrorResponse, description="Bad request - validation error or already in watchlist"
77
+
),
78
+
500: OpenApiResponse(response=ApiErrorResponse, description="Internal server error"),
79
+
},
80
+
)
35
81
defpost(self, request: Request):
36
82
"""
37
83
Add a task to the watchlist.
@@ -65,22 +111,23 @@ class WatchlistDetailView(APIView):
65
111
@extend_schema(
66
112
operation_id="update_watchlist_task",
67
113
summary="Update watchlist status of a task",
68
-
description="Update the isActive status of a task in the user's watchlist.",
114
+
description="Update the isActive status of a task in the authenticated user's watchlist. This allows users to activate or deactivate watching a specific task.",
69
115
tags=["watchlist"],
70
116
parameters=[
71
117
OpenApiParameter(
72
118
name="task_id",
73
-
type=str,
119
+
type=OpenApiTypes.STR,
74
120
location=OpenApiParameter.PATH,
75
-
description="Unique identifier of the task to update in the watchlist.",
121
+
description="Unique identifier of the task to update in the watchlist",
0 commit comments