How to get the method name with the url using django.urls.get_resolver()
I am getting these urls with django's get_resolver() function for a class:
^api/asset_management/^^get_assets/$
^api/asset_management/^^get_assets\.(?P<format>[a-z0-9]+)/?$
^api/asset_management/^^get_assets/(?P<pk>[^/.]+)/$
^api/asset_management/^^get_assets/(?P<pk>[^/.]+)\.(?P<format>[a-z0-9]+)/?$
I also want the name of the method where each of these url is redirected e.g. Get, Post etc. The class is a simple ModelViewSet and is registered by the DefaultRouter.