0Pricing
Django Academy · Lesson

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

  1. Installing and Configuring DRF
  2. Serializers: Model to JSON
  3. APIView and Function @api_view
  4. The Browsable API and Status Codes
← Back to Django Academy