[Fixed]-Related objects as separate endpoint (the "edge" model) using Django Rest Framework

1👍

There is no reason detail_route should only return a single instance, detail_route is a route on one instance (detail view) but may return a list relative to that instance.

Look at the second example of DRF docs: detail_route decorator is used to return a list.

Leave a comment