title: Url for custom method in django apiview
body: <p>I am new in Django and I am bit confused in Django <code>apiview</code> for custom method.
  In ApiView, How can I create a custom method and How to call from axios.</p>
  
  <p>For example</p>
  
  <p>Here is my View</p>
  
  <pre><code>class TimeSheetAPIView(APIView):    
  
      @action(methods=['get'], detail=False)    
      def getbytsdate(self, request):
          return Response({"timesheet":"hello from getbydate"})
  
      def get(self,request,pk=None):
          if pk:
              timesheet=get_object_or_404(TimeSheet.objects.all(),pk=pk)
              serializer = TimeSheetSerializer(timesheet)
              return Response({serializer.data})
          timesheet=TimeSheet.objects.all()
          serializer = TimeSheetSerializer(timesheet,many=True)
          return Response({"timesheet":serializer.data})
  </code></pre>
  
  <p>Here is my URL=></p>
  
  <pre><code>    url(r'^timesheets_ts/(?P&lt;pk&gt;\d+)/$', TimeSheetAPIView.as_view()),
      url(r'^timesheets_ts/', TimeSheetAPIView.as_view()),
  </code></pre>
  
  <p>Normally my url would be like=></p>
  
  <pre><code>api/timesheet_ts/
  </code></pre>
  
  <p>this one will get all of my records.</p>
  
  <p>So my question is how can I setup URL for <code>getbytsdate</code> or <code>getbyname</code> or other some kind of custom get method? and how can I call?</p>
  
  <p>I tried like this way=></p>
  
  <pre><code>url(r'^timesheets_ts/getbytsdate/(?P&lt;tsdate&gt;[-\w]+)/$', TimeSheetAPIView.as_view()),
  </code></pre>
  
  <p>and I called like that</p>
  
  <pre><code>api/timesheets_ts/getbytsdate/?tsdate='test'
  </code></pre>
  
  <p>Its not work.</p>
  
  <p>So please can u explain for the custom method in <code>apiview</code> and url setting?</p>