Skip to content

OpenAPI schema

drf-spectacular AutoSchema subclass that understands restflow's view conventions. See the Spectacular guide for action-config resolution rules and pagination handling.

RestflowAutoSchema

Bases: AutoSchema

AutoSchema that understands restflow's view conventions.

Resolves serializers from action_configs, non-generic APIView serializer_class, filterset_class, and pagination_class. Filter parameters are computed directly from filterset_class without depending on filter_backends, so any view that declares a FilterSet gets its query parameters in the schema.

get_request_serializer

get_request_serializer()

Returns the serializer instance used to describe the operation's request body.

get_response_serializers

get_response_serializers()

Returns the serializer instance used to describe the operation's response body.