Clone From Library (Work Item Template)

Removes unnecesary prefetch / select_related from the queryset when model-only attributes or properties are petitioned in the request via the "fields" query param. E.g. "?fields=id,display_name"

Must be used along with QueryFieldsMixin on the serializer.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
string | null
required
string
required
length ≤ 255
string | null
boolean
boolean
boolean
boolean
integer | null
integer | null
required
integer | null
Headers
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Response

Language
Credentials
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json