Closed
Description
https://www.django-rest-framework.org/api-guide/schemas/
Specifically the block that describes how to override AutoSchema
references an undefined method get_link()
:
from rest_framework.views import APIView
from rest_framework.schemas.openapi import AutoSchema
class CustomSchema(AutoSchema):
def get_link(...):
# Implement custom introspection here (or in other sub-methods)
class CustomView(APIView):
"""APIView subclass with custom schema introspection."""
schema = CustomSchema()