class ViewInspector: (source)
Known subclasses: rest_framework.schemas.coreapi.AutoSchema
, rest_framework.schemas.coreapi.ManualSchema
, rest_framework.schemas.inspectors.DefaultSchema
, rest_framework.schemas.openapi.AutoSchema
Descriptor class on APIView. Provide subclass for per-view schema generation
Method | __get__ |
Enables `ViewInspector` as a Python _Descriptor_. |
Method | __init__ |
Undocumented |
Method | __set__ |
Undocumented |
Method | get |
Determine a path description. |
Method | view |
Undocumented |
Method | view |
Undocumented |
Class Variable | header |
Undocumented |
Instance Variable | instance |
Undocumented |
Property | view |
View property. |
Method | _get |
Undocumented |
Instance Variable | _view |
Undocumented |
rest_framework.schemas.inspectors.DefaultSchema
Enables `ViewInspector` as a Python _Descriptor_. This is how `view.schema` knows about `view`. `__get__` is called when the descriptor is accessed on the owner. (That will be when view.schema is called in our case.) `owner` is always the owner class. (An APIView, or subclass for us.) `instance` is the view instance or `None` if accessed from the class, rather than an instance. See: https://docs.python.org/3/howto/descriptor.html for info on descriptor usage.