inspectors#
URLReferencedModelFieldInspector#
Bases: ReferencingSerializerInspector
Generate swagger for URLReferencedModelField from its child serializer.
Source code in src/apps/common/inspectors.py
SwaggerDescriptionInspector#
Bases: FieldInspector
Inspector that reads description from Serializer.Meta.swagger_description.
Source code in src/apps/common/inspectors.py
ExtendedSwaggerAutoSchema#
Bases: SwaggerAutoSchema
Class that generates the swagger documentation for views.
Source code in src/apps/common/inspectors.py
get_query_parameters()
#
Return the query parameters accepted by this view.
Extended to allow listing query parameter serializers
in ViewSet.get_query_serializer_classes
method.
Source code in src/apps/common/inspectors.py
get_request_serializer()
#
Return the request serializer (used for parsing the request payload) for this endpoint.
Extended to not use the default serializer for custom actions.
Source code in src/apps/common/inspectors.py
get_tags(operation_keys=None)
#
Return tag for operation, used for grouping endpoints in Swagger.