title: How to fix " AttributeError at /api/doc 'AutoSchema' object has no attribute 'get_link' " error in Django
body: <p>We are practicing an example of REST API on the Internet.</p>
  
  <p>However, the following error occurred.</p>
  
  <p>I tried a way in this link, but the situation hasn't changed.</p>
  
  <p><a href="https://stackoverflow.com/questions/57123611/why-swagger-raises-unclear-error-django">why swagger raises unclear error - Django</a></p>
  
  <pre><code>from django.contrib import admin
  from django.conf.urls import url, include
  from rest_framework import routers
  from rest_framework_swagger.views import get_swagger_view
  
  import consumer.api
  
  app_name = 'consumer'
  
  router = routers.DefaultRouter()
  router.register('consumers', consumer.api.ConsumerViewSet)
  
  urlpatterns = [
      url(r'^admin/', admin.site.urls),
      url(r'^api/doc', get_swagger_view(title='Rest API Document')),
      url(r'^api/v1/', include((router.urls, 'consumer'), namespace='api')),
  ]
  </code></pre>
  
  <pre><code>Exception Type: AttributeError at /api/doc
  Exception Value: 'AutoSchema' object has no attribute 'get_link'
  </code></pre>