Serializers¶
DetailSerializer
¶
Bases: OpenApiSerializer
To show in spec responses like this {detail: text}.
Source code in saritasa_drf_tools/open_api/serializers.py
24 25 26 27 | |
OpenApiSerializer
¶
Bases: Serializer
Serializer that should be used for customizing open_api spec.
Made to avoid warnings about unimplemented methods
Source code in saritasa_drf_tools/open_api/serializers.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | |
create(validated_data)
¶
Made to avoid warnings about unimplemented methods.
Source code in saritasa_drf_tools/open_api/serializers.py
13 14 | |
update(instance, validated_data)
¶
Made to avoid warnings about unimplemented methods.
Source code in saritasa_drf_tools/open_api/serializers.py
16 17 18 19 20 21 | |