мое мнение:
Код: Выделить всё
@extend_schema(
responses={200: TripSerializer},
)
def get(self, request: Request) -> Response:
trip = TripService.get_trip(trip_id=request.data.get("trip_id"))
if trip is None:
return Response(status=status.HTTP_404_NOT_FOUND)
trip_serializer = TripSerializer(trip)
return Response(trip_serializer.data, status=status.HTTP_200_OK)
Код: Выделить всё
{
"trip_id": "1"
}

Буду признателен за любую помощь,
Спасибо
Подробнее здесь: https://stackoverflow.com/questions/758 ... pectacular