Skip to content

Commit 6698ab0

Browse files
authored
Merge pull request #2156 from aboutcode-org/add_v3_throttling
Add throttling to V3 API
2 parents 57cdf99 + daa0cfc commit 6698ab0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

vulnerabilities/api_v2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,7 @@ class PackageV3ViewSet(viewsets.ReadOnlyModelViewSet):
10301030
serializer_class = PackageV3Serializer
10311031
filter_backends = [filters.DjangoFilterBackend]
10321032
filterset_class = AdvisoryPackageV2FilterSet
1033+
throttle_classes = [AnonRateThrottle, PermissionBasedUserRateThrottle]
10331034

10341035
def get_queryset(self):
10351036
return (

0 commit comments

Comments
 (0)