3 ms·
That's basically how most modern frameworks do it. Django-Rest-Framework does that with view + serializer + validators. A more recent example, with a leaner a
by BiteCode_dev 5y ago
That's basically how most modern frameworks do it.
Django-Rest-Framework does that with view + serializer + validators.
A more recent example, with a leaner and cooler implementation is FastAPI, where type hints are also use to declare validation on your end point, while a model is used for serializing the response.