3 ms·
Rather than reimplementing this stuff, and assuming you are using Django, you could just use Django Rest Framework to get OpenAPI, typed serializers, etc. In t
by theptip 7y ago
Rather than reimplementing this stuff, and assuming you are using Django, you could just use Django Rest Framework to get OpenAPI, typed serializers, etc.
In that framework your serializers are by default auto-generated from your model classes; this is convenient to get started, just like Django itself.