#NEWLINE# def list( self , request ) : #NEWLINE# #INDENT# serializer = ProductParamSerializer ( data = request . GET ) #NEWLINE# if ( not serializer . is_valid ( ) ) : #NEWLINE# #INDENT# return Response ( serializer . errors , status = status . HTTP_400_BAD_REQUEST ) #NEWLINE# #UNINDENT# product_objs = shop . api . list_products ( ** serializer . validated_data ) #NEWLINE# serializer = ProductSerializer ( product_objs , many = True ) #NEWLINE# return Response ( request . data )