This PR makes the order endpoint use the custom serializers for each order item instead of using the generic OrderItemSerializer.
This means that for items from exposures ExposureOrderItemSerializer is used and for vulnerabilities items, VulnerabilitiesOrderItemSerializer is used. This brings back some more detail about each item into the order endpoint, most notably the format parameter, which was being used by the frontend.
This PR makes the order endpoint use the custom serializers for each order item instead of using the generic
OrderItemSerializer
.This means that for items from exposures
ExposureOrderItemSerializer
is used and for vulnerabilities items,VulnerabilitiesOrderItemSerializer
is used. This brings back some more detail about each item into the order endpoint, most notably theformat
parameter, which was being used by the frontend.