Describes a RESTful API
Most of DRF elements (serializers, filters, responses)
map directly to a part of a REST API
Serializers map directly to the HTTP BODY
(THE PAYLOAD)
Do we need output serializer?
Does it have an impact on performance?
Yes, it has an impact on performance
output serializer is 41% slower
540.8ms vs 917.4ms on average
(sorry for the cheap benchmarks)
APIView: 278
ModelViewSet: 17
use HEADERS
Find me on twitter