File tree Expand file tree Collapse file tree 2 files changed +12
-13
lines changed
pydis_site/apps/api/viewsets/bot Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class AocCompletionistBlockViewSet(
42
42
43
43
#### Status codes
44
44
- 200: returned on success
45
- - 404: returned if an AoC completionist block with the given user__id was not found.
45
+ - 404: returned if an AoC completionist block with the given ` user__id` was not found.
46
46
47
47
### POST /bot/aoc-completionist-blocks
48
48
Adds a single AoC completionist block
@@ -63,11 +63,11 @@ class AocCompletionistBlockViewSet(
63
63
64
64
#### Status codes
65
65
- 204: returned on success
66
- - 404: if the AoC Completionist block with the given user__id does not exist
66
+ - 404: returned if the AoC Completionist block with the given ` user__id` was not found
67
67
68
68
"""
69
69
70
70
serializer_class = AocCompletionistBlockSerializer
71
71
queryset = AocCompletionistBlock .objects .all ()
72
72
filter_backends = (DjangoFilterBackend ,)
73
- filter_fields = ("user__id" ,)
73
+ filter_fields = ("user__id" , "is_blocked" )
Original file line number Diff line number Diff line change @@ -29,20 +29,19 @@ class AocAccountLinkViewSet(
29
29
... ]
30
30
31
31
32
- ### GET /bot/aoc-account-links<user__id:int>
32
+ ### GET /bot/aoc-account-links/ <user__id:int>
33
33
Retrieve a AoC account link by User ID
34
34
35
35
#### Response format
36
- >>> [
37
- ... {
38
- ... "user": 2,
39
- ... "aoc_username": "AoCUser1"
40
- ... },
41
- ... ]
36
+ >>>
37
+ ... {
38
+ ... "user": 2,
39
+ ... "aoc_username": "AoCUser1"
40
+ ... }
42
41
43
42
#### Status codes
44
43
- 200: returned on success
45
- - 404: returned if an AoC account link with the given user__id was not found.
44
+ - 404: returned if an AoC account link with the given ` user__id` was not found.
46
45
47
46
### POST /bot/aoc-account-links
48
47
Adds a single AoC account link block
@@ -55,14 +54,14 @@ class AocAccountLinkViewSet(
55
54
56
55
#### Status codes
57
56
- 204: returned on success
58
- - 400: if one of the given fields is invalid
57
+ - 400: if one of the given fields was invalid
59
58
60
59
### DELETE /bot/aoc-account-links/<user__id:int>
61
60
Deletes the AoC account link item with the given `user__id`.
62
61
63
62
#### Status codes
64
63
- 204: returned on success
65
- - 404: if the AoC account link with the given user__id does not exist
64
+ - 404: returned if the AoC account link with the given ` user__id` was not found
66
65
67
66
"""
68
67
You can’t perform that action at this time.
0 commit comments