2
This commit is contained in:
@@ -82,8 +82,15 @@ class IntegrationViewSet(SiteSectorModelViewSet):
|
|||||||
)
|
)
|
||||||
|
|
||||||
from rest_framework.permissions import AllowAny
|
from rest_framework.permissions import AllowAny
|
||||||
|
from rest_framework.throttling import BaseThrottle
|
||||||
|
|
||||||
@action(detail=False, methods=['post'], url_path='test-connection', permission_classes=[AllowAny])
|
class NoThrottle(BaseThrottle):
|
||||||
|
"""Temporary throttle class that allows all requests"""
|
||||||
|
def allow_request(self, request, view):
|
||||||
|
return True
|
||||||
|
|
||||||
|
@action(detail=False, methods=['post'], url_path='test-connection',
|
||||||
|
permission_classes=[AllowAny], throttle_classes=[NoThrottle])
|
||||||
def test_connection_collection(self, request):
|
def test_connection_collection(self, request):
|
||||||
"""
|
"""
|
||||||
Collection-level test connection endpoint for frontend convenience.
|
Collection-level test connection endpoint for frontend convenience.
|
||||||
|
|||||||
@@ -257,6 +257,7 @@ REST_FRAMEWORK = {
|
|||||||
'billing_admin': '10/min', # Credit management (admin)
|
'billing_admin': '10/min', # Credit management (admin)
|
||||||
'linker': '30/min', # Content linking operations
|
'linker': '30/min', # Content linking operations
|
||||||
'optimizer': '10/min', # AI-powered optimization
|
'optimizer': '10/min', # AI-powered optimization
|
||||||
|
'integration': '100/min', # Integration operations (WordPress, etc.)
|
||||||
# Default fallback
|
# Default fallback
|
||||||
'default': '100/min', # Default for endpoints without scope
|
'default': '100/min', # Default for endpoints without scope
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user