Can Django viewsets.GenericViewSet get parameters from url?

class ShopProductApi_Viewset (mixins.ListModelMixin, viewsets.GenericViewSet)

queryset = Goods.objects.all()

router.register (rushing shopproducttapific, ShopProductApi_Viewset,base_name="shopproductapi")

above is my class view, and url"s router.
how do I get parameters from url? You want to assign the acquired parameter to another variable.

May.13,2021
Menu