- The
ScopedRateThrottle
class:- Limits the rate of requests that a specific user can make.
- Limits the rate of requests for specific parts of the API identified with the value assigned to the
throttle_scope
property. - Limits the rate of requests that an anonymous user can make.
- The
UserRateThrottle
class:- Limits the rate of requests that a specific user can make.
- Limits the rate of requests for specific parts of the API identified with the value assigned to the
throttle_scope
property. - Limits the rate of requests that an anonymous user can make.
- The
DjangoFilterBackend
class:- Provides single query parameter based searching capabilities and it is based on the Django admin's search function.
- Allows the client to control how the results are ordered with a single query parameter.
- Provides field filtering capabilities.
- The
SearchFilter
class:- Provides single query parameter based searching capabilities and it is based on the Django admin's search function.
- Allows the client to control how the results are ordered with a single query parameter.
- Provides field filtering capabilities.
- In a subclass of
APITestCase
, self.client
is:- The
APIClient
instance that allows us to easily compose and send HTTP requests for testing. - The
APITestClient
instance that allows us to easily compose and send HTTP requests for testing. - The
APITestCase
instance that allows us to easily compose and send HTTP requests for testing.
..................Content has been hidden....................
You can't read the all page of ebook, please click
here login for view all page.