From 1dcd23d68cc77200c56922bde63eb8ab236cf508 Mon Sep 17 00:00:00 2001 From: abulaysov Date: Mon, 18 Mar 2024 03:40:17 +0300 Subject: [PATCH] add more information in documentation about feature --- docs/api-guide/throttling.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/api-guide/throttling.md b/docs/api-guide/throttling.md index b037966f5..cfb78dc96 100644 --- a/docs/api-guide/throttling.md +++ b/docs/api-guide/throttling.md @@ -45,7 +45,16 @@ The default throttling policy may be set globally, using the `DEFAULT_THROTTLE_C } } -The rate descriptions used in `DEFAULT_THROTTLE_RATES` may include `second`, `minute`, `hour` or `day` as the throttle period. +The rate descriptions used in `DEFAULT_THROTTLE_RATES` may include `second`, `minute`, `hour` or `day` as the throttle period, +and period also can has amount. For example. + + ... + 'DEFAULT_THROTTLE_RATES': { + 'anon': '100/3-day', + 'user': '2000/2-day' + } + ... + You can also set the throttling policy on a per-view or per-viewset basis, using the `APIView` class-based views.