geosolutions-it / gfdrr-det

Data Exploration Tool
https://waffle.io/geosolutions-it/gfdrr-det
GNU General Public License v3.0
3 stars 0 forks source link

order endpoint now shows items with their own serializer #126

Closed ricardogsilva closed 6 years ago

ricardogsilva commented 6 years ago

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.