Conceptual
Login

DRF Routers

A Router generates the URL conf for a ViewSet from a single register(prefix, viewset) call, mapping list/detail routes and any @action routes to the correct action methods per HTTP verb. DefaultRouter additionally provides an API root view and format-suffix patterns.

This Concept is waiting for its first lesson!

A Router generates the URL conf for a ViewSet from a single register(prefix, viewset) call, mapping list/detail routes and any @action routes to the correct action methods per HTTP verb. DefaultRouter additionally provides an API root view and format-suffix patterns.

Are you a teacher? Sign in to start contributing.

Sign In