Test your knowledge

  1. The ScopedRateThrottle class:
    1. Limits the rate of requests that a specific user can make.
    2. Limits the rate of requests for specific parts of the API identified with the value assigned to the throttle_scope property.
    3. Limits the rate of requests that an anonymous user can make.

  2. The UserRateThrottle class:
    1. Limits the rate of requests that a specific user can make.
    2. Limits the rate of requests for specific parts of the API identified with the value assigned to the throttle_scope property.
    3. Limits the rate of requests that an anonymous user can make.

  3. The DjangoFilterBackend class:
    1. Provides single query parameter based searching capabilities and it is based on the Django admin's search function.
    2. Allows the client to control how the results are ordered with a single query parameter.
    3. Provides field filtering capabilities.

  4. The SearchFilter class:
    1. Provides single query parameter based searching capabilities and it is based on the Django admin's search function.
    2. Allows the client to control how the results are ordered with a single query parameter.
    3. Provides field filtering capabilities.

  5. In a subclass of APITestCase, self.client is:
    1. The APIClient instance that allows us to easily compose and send HTTP requests for testing.
    2. The APITestClient instance that allows us to easily compose and send HTTP requests for testing.
    3. 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.
Reset
3.16.81.33