rest framework swagger 'AutoSchema' object has no attribute get_link
djagno-rest-swagger
is deprecated and suggests to use drf-yasg
add below line in settings.py
REST_FRAMEWORK = {'DEFAULT_SCHEMA_CLASS':'rest_framework.schemas.coreapi.AutoSchema' }