code: def urls(self):
          
          from django.conf.urls import url
          urls = [
              url(r'^$', self.documentation),
              url(r'^map$', self.map_view),
          ]
  
          for resource_name in self.resource_map:
              urls.extend([
                  url(r'(?P<resource_name>{})$'.format(
                      resource_name), self.handler_view),
                  url(r'(?P<resource_name>{})/(?P<ids>[\w\-\,]+)$'.format(
                      resource_name), self.handler_view),
              ])
  
          return urls
docs: Get all of the api endpoints.
  
          NOTE: only for django as of now.
          NOTE: urlpatterns are deprecated since Django1.8
  
          :return list: urls