/djangorestframework-queryfields

Allows clients to control which fields will be sent in the API response

Primary LanguagePythonMIT LicenseMIT

Django REST framework QueryFields

travis coveralls pypi womm

Allows clients to control which fields will be sent in the API response. Fields are specified in the query, e.g.

# You want a list of users but you're just interested in the fields "id" and "username":
GET /users/?fields=id,username

# You want to see every field except "id" for the specific user tom:
GET /users/tom/?fields!=id

Documentation is hosted on Read The Docs.