Django - REST Framework Basics
You want to customize the browsable API interface to add a new header and change the form layout for a POST endpoint. Which approach is correct?
BrowsableAPIRenderer.renderer_classes in your API view to use your custom renderer that adds headers or changes form layout.renderer_classes in your view to use a custom renderer subclassing BrowsableAPIRenderer -> Option A15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions