Recipes¶
Task-shaped how-tos. Each assumes the Quickstart and Concepts. What a spec itself declares (preconditions, affordances, queryset shaping, nested relations, bulk writes, a spec registry shared by several transports) is the kernel's documentation.
- Viewsets and custom actions:
action_specs,@service_action,@selector_action, and composing a viewset from the per-action mixins. - View hooks and providers: the server's values for a service, on the spec and on the view, and which outranks which.
- DRF permission classes:
DRFPermissionCheckon a spec, over HTTP and off it. - Filter a selector with
filter_set: adjango-filterFilterSetread off the query string. - Serializer context: one context dict per request, and the keys a spec or a view adds.
- Calling a spec off HTTP: the kernel's
dispatchover a spec a route serves.