-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathschema.yaml
More file actions
1955 lines (1953 loc) · 50.1 KB
/
schema.yaml
File metadata and controls
1955 lines (1953 loc) · 50.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
title: Todo API
version: 1.0.0
description: A comprehensive Todo API with authentication and task management
contact:
name: API Support
email: support@example.com
license:
name: MIT License
url: https://opensource.org/licenses/MIT
paths:
/v1/auth/google/callback:
get:
operationId: google_callback
description: Processes the OAuth callback from Google and creates/updates user
account
summary: Handle Google OAuth callback
parameters:
- in: query
name: code
schema:
type: string
description: Authorization code from Google
required: true
- in: query
name: error
schema:
type: string
description: Error from Google OAuth
- in: query
name: state
schema:
type: string
description: State parameter for CSRF protection
required: true
tags:
- auth
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
description: OAuth callback processed successfully
'400':
description: Bad request - invalid parameters
'500':
description: Internal server error
/v1/auth/google/login:
get:
operationId: google_login
description: Redirects to Google OAuth authorization URL or returns JSON response
with auth URL
summary: Initiate Google OAuth login
parameters:
- in: query
name: format
schema:
type: string
description: 'Response format: ''json'' for JSON response, otherwise redirects'
- in: query
name: redirectURL
schema:
type: string
description: URL to redirect after successful authentication
tags:
- auth
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
description: Google OAuth URL generated successfully
'302':
description: Redirect to Google OAuth URL
/v1/auth/logout:
post:
operationId: google_logout_post
description: Logout the user by clearing authentication cookies (POST method)
summary: Logout user (POST)
tags:
- auth
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
description: Logout successful
/v1/health:
get:
operationId: health_check
description: Check the health status of the application and its components
summary: Health check
tags:
- health
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
description: Application is healthy
'503':
description: Application is unhealthy
/v1/labels:
get:
operationId: labels_retrieve
description: Retrieve a paginated list of labels.
tags:
- labels
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
description: No response body
/v1/roles:
get:
operationId: get_roles
description: Retrieve all roles with optional filtering
summary: Get all roles
parameters:
- in: query
name: is_active
schema:
type: boolean
description: Filter by active status
- in: query
name: name
schema:
type: string
description: Filter by role name
- in: query
name: scope
schema:
type: string
description: Filter by role scope (GLOBAL/TEAM)
tags:
- roles
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
description: Roles retrieved successfully
'400':
description: Bad request
'500':
description: Internal server error
post:
operationId: create_role
description: Create a new role with the provided details
summary: Create a new role
tags:
- roles
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateRoleRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CreateRoleRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/CreateRoleRequest'
required: true
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'201':
description: Role created successfully
'400':
description: Bad request
'409':
description: Role already exists
'500':
description: Internal server error
/v1/roles/{role_id}:
get:
operationId: get_role_by_id
description: Retrieve a single role by its unique identifier
summary: Get role by ID
parameters:
- in: path
name: role_id
schema:
type: string
description: Unique identifier of the role
required: true
tags:
- roles
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
description: Role retrieved successfully
'404':
description: Role not found
'500':
description: Internal server error
patch:
operationId: update_role
description: Update an existing role with the provided details
summary: Update role
parameters:
- in: path
name: role_id
schema:
type: string
description: Unique identifier of the role
required: true
tags:
- roles
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PatchedUpdateRoleRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/PatchedUpdateRoleRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/PatchedUpdateRoleRequest'
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
description: Role updated successfully
'400':
description: Bad request
'404':
description: Role not found
'409':
description: Role name already exists
'500':
description: Internal server error
delete:
operationId: delete_role
description: Delete a role by its unique identifier
summary: Delete role
parameters:
- in: path
name: role_id
schema:
type: string
description: Unique identifier of the role to delete
required: true
tags:
- roles
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'204':
description: Role deleted successfully
'404':
description: Role not found
'500':
description: Internal server error
/v1/task-assignments:
post:
operationId: create_task_assignment
description: Assign a task to either a user or a team. The system will validate
that both the task and assignee exist before creating the assignment.
summary: Assign task to user or team
tags:
- task-assignments
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateTaskAssignmentRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CreateTaskAssignmentRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/CreateTaskAssignmentRequest'
required: true
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/CreateTaskAssignmentResponse'
description: Task assignment created successfully
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ApiErrorResponse'
description: Bad request - validation error or assignee not found
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/ApiErrorResponse'
description: Task not found
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/ApiErrorResponse'
description: Internal server error
/v1/task-assignments/{task_id}:
get:
operationId: get_task_assignment
description: Retrieve the assignment details for a specific task
summary: Get task assignment by task ID
parameters:
- in: path
name: task_id
schema:
type: string
description: Unique identifier of the task
required: true
tags:
- task-assignments
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/CreateTaskAssignmentResponse'
description: Task assignment retrieved successfully
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/ApiErrorResponse'
description: Task assignment not found
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/ApiErrorResponse'
description: Internal server error
patch:
operationId: set_executor_for_team_task
description: Allows the SPOC of a team to set or update the executor (user within
the team) for a team-assigned task. All SPOC re-assignments are logged in
the audit trail.
summary: Set or update executor for a team-assigned task (SPOC only)
parameters:
- in: path
name: task_id
schema:
type: string
description: Unique identifier of the task
required: true
tags:
- task-assignments
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PatchedExecutorUpdateRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/PatchedExecutorUpdateRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/PatchedExecutorUpdateRequest'
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
description: Executor updated successfully
'403':
description: Forbidden - only SPOC can update executor for team task
'404':
description: Task assignment not found
'500':
description: Internal server error
delete:
operationId: delete_task_assignment
description: Remove the assignment for a specific task
summary: Delete task assignment
parameters:
- in: path
name: task_id
schema:
type: string
description: Unique identifier of the task
required: true
tags:
- task-assignments
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'204':
description: Task assignment deleted successfully
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/ApiErrorResponse'
description: Task assignment not found
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/ApiErrorResponse'
description: Internal server error
/v1/tasks:
get:
operationId: get_tasks
description: 'Retrieve a paginated list of tasks with optional filtering and
sorting. Each task now includes an ''in_watchlist'' property indicating the
watchlist status: true if actively watched, false if in watchlist but inactive,
or null if not in watchlist.'
summary: Get paginated list of tasks
parameters:
- in: query
name: limit
schema:
type: integer
description: Number of tasks per page
- in: query
name: page
schema:
type: integer
description: Page number for pagination
- in: query
name: teamId
schema:
type: string
description: If provided, filters tasks assigned to this team.
tags:
- tasks
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/GetTasksResponse'
description: Successful response
'400':
description: Bad request
'500':
description: Internal server error
post:
operationId: create_task
description: Create a new task with the provided details
summary: Create a new task
tags:
- tasks
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateTaskRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CreateTaskRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/CreateTaskRequest'
required: true
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'201':
description: Task created successfully
'400':
description: Bad request
'500':
description: Internal server error
/v1/tasks/{task_id}:
get:
operationId: get_task_by_id
description: Retrieve a single task by its unique identifier
summary: Get task by ID
parameters:
- in: path
name: task_id
schema:
type: string
description: Unique identifier of the task
required: true
tags:
- tasks
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
description: Task retrieved successfully
'404':
description: Task not found
'500':
description: Internal server error
patch:
operationId: update_task
description: Partially update a task or defer it based on the action parameter
summary: Update or defer task
parameters:
- in: query
name: action
schema:
type: string
description: 'Action to perform: ''update'' or ''defer'''
- in: path
name: task_id
schema:
type: string
description: Unique identifier of the task
required: true
tags:
- tasks
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PatchedUpdateTaskRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/PatchedUpdateTaskRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/PatchedUpdateTaskRequest'
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
description: Task updated successfully
'400':
description: Bad request
'404':
description: Task not found
'500':
description: Internal server error
delete:
operationId: delete_task
description: Delete a task by its unique identifier
summary: Delete task
parameters:
- in: path
name: task_id
schema:
type: string
description: Unique identifier of the task to delete
required: true
tags:
- tasks
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'204':
description: Task deleted successfully
'404':
description: Task not found
'500':
description: Internal server error
/v1/teams:
get:
operationId: teams_retrieve
description: Get all teams assigned to the authenticated user.
tags:
- teams
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
description: No response body
post:
operationId: create_team
description: Create a new team with the provided details. The creator is always
added as a member, even if not in member_ids or as POC.
summary: Create a new team
tags:
- teams
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateTeamRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CreateTeamRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/CreateTeamRequest'
required: true
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/CreateTeamResponse'
description: Team created successfully
'400':
description: Bad request - validation error
'500':
description: Internal server error
/v1/teams/{team_id}:
get:
operationId: get_team_by_id
description: Retrieve a single team by its unique identifier. Optionally, set
?member=true to get users belonging to this team.
summary: Get team by ID
parameters:
- in: query
name: member
schema:
type: boolean
description: If true, returns users that belong to this team instead of team
details.
- in: path
name: team_id
schema:
type: string
description: Unique identifier of the team
required: true
tags:
- teams
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
description: Team or team members retrieved successfully
'404':
description: Team not found
'500':
description: Internal server error
patch:
operationId: update_team
description: 'Update a team''s details including name, description, point of
contact (POC), and team members. All fields are optional - only include the
fields you want to update. For member management: if member_ids is provided,
it completely replaces the current team members; if member_ids is not provided,
existing members remain unchanged.'
summary: Update team by ID
parameters:
- in: path
name: team_id
schema:
type: string
description: Unique identifier of the team
required: true
tags:
- teams
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PatchedUpdateTeamRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/PatchedUpdateTeamRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/PatchedUpdateTeamRequest'
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/TeamDTO'
description: Team updated successfully
'400':
description: Bad request - validation error or invalid member IDs
'404':
description: Team not found
'500':
description: Internal server error
/v1/teams/{team_id}/members:
post:
operationId: add_team_members
description: Add new members to a team. Only existing team members can add other
members.
summary: Add members to a team
parameters:
- in: path
name: team_id
schema:
type: string
description: Unique identifier of the team
required: true
tags:
- teams
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AddTeamMemberRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/AddTeamMemberRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/AddTeamMemberRequest'
required: true
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/TeamDTO'
description: Team members added successfully
'400':
description: Bad request - validation error or user not a team member
'404':
description: Team not found
'500':
description: Internal server error
/v1/teams/join-by-invite:
post:
operationId: join_team_by_invite_code
description: Join a team using a valid invite code. Returns the joined team
details.
summary: Join a team by invite code
tags:
- teams
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/JoinTeamByInviteCodeRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/JoinTeamByInviteCodeRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/JoinTeamByInviteCodeRequest'
required: true
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/TeamDTO'
description: Joined team successfully
'400':
description: Bad request - validation error or already a member
'404':
description: Team not found or invalid invite code
'500':
description: Internal server error
/v1/users:
get:
operationId: get_users
description: Get user profile details or search users with fuzzy search. Use
'profile=true' to get current user details, or use search parameter to find
users.
summary: Get users with search and pagination
parameters:
- in: query
name: limit
schema:
type: integer
description: 'Number of results per page (default: 10, max: 100)'
- in: query
name: page
schema:
type: integer
description: 'Page number for pagination (default: 1)'
- in: query
name: profile
schema:
type: string
description: Set to 'true' to get current user profile
- in: query
name: search
schema:
type: string
description: Search query for name or email (fuzzy search)
tags:
- users
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/UserSearchResponseDTO'
description: ''
'204':
description: No users found
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/ApiErrorResponse'
description: ''
'400':
description: Bad request - invalid parameters
'404':
description: Route does not exist
'500':
description: Internal server error
/v1/watchlist/tasks:
get:
operationId: get_watchlist_tasks
description: Retrieve a paginated list of tasks that are added to the authenticated
user's watchlist.
summary: Get paginated list of watchlisted tasks
parameters:
- in: query
name: limit
schema:
type: integer
description: 'Number of tasks per page (default: 10, max: 100)'
- in: query
name: page
schema:
type: integer
description: 'Page number for pagination (default: 1)'
tags:
- watchlist
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/GetWatchlistTasksResponse'
description: Paginated list of watchlisted tasks returned successfully
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ApiErrorResponse'
description: Bad request - validation error
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/ApiErrorResponse'
description: Internal server error
post:
operationId: add_task_to_watchlist
description: Add a task to the authenticated user's watchlist.
summary: Add a task to the watchlist
tags:
- watchlist
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateWatchlistRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CreateWatchlistRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/CreateWatchlistRequest'
required: true
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/CreateWatchlistResponse'
description: Task added to watchlist successfully
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ApiErrorResponse'
description: Bad request - validation error or already in watchlist
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/ApiErrorResponse'
description: Internal server error
/v1/watchlist/tasks/{task_id}:
patch:
operationId: update_watchlist_task
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.
summary: Update watchlist status of a task
parameters:
- in: path
name: task_id
schema:
type: string
description: Unique identifier of the task to update in the watchlist
required: true
tags:
- watchlist
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PatchedUpdateWatchlistRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/PatchedUpdateWatchlistRequest'
multipart/form-data:
schema:
$ref: '#/components/schemas/PatchedUpdateWatchlistRequest'
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
description: Watchlist task status updated successfully
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ApiErrorResponse'
description: Bad request - validation error
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/ApiErrorResponse'
description: Task not found in watchlist
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/ApiErrorResponse'
description: Internal server error
/v1/watchlist/tasks/check:
get:
operationId: check_task_in_watchlist
description: 'Returns the watchlist status for the given task_id: true if actively
watched, false if in watchlist but inactive, or null if not in watchlist.'
summary: Check if a task is in the user's watchlist
parameters:
- in: query
name: task_id
schema:
type: string
description: Task ID to check
required: true
tags: