/django-4.0-rest-framework

https://www.django-rest-framework.org/

Primary LanguagePython

Django 4.0 REST Framework

https://www.django-rest-framework.org/

Tutorial

Insights

  • Either all @api_view views, or APIView views, or mixins views, or generics views or viewsets views are @csrf_exempt by default.
  • reverse("foo-list", ...) should have equivalent path(..., name='foo-list'), in urlpatterns.
  • viewsets automatically handle format_suffix_patterns.