The Browsable API and Status Codes
Test endpoints in the browser correctly.
Test in the Browser
DRF's browsable API renders any endpoint as an interactive web page, so you can explore and test your API without extra tools. 🌐
How It Decides
DRF uses content negotiation: browsers ask for HTML and get the friendly page, while code asking for JSON gets raw JSON instead.
All lessons in this course
- Installing and Configuring DRF
- Serializers: Model to JSON
- APIView and Function @api_view
- The Browsable API and Status Codes