/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

sam.hooke.me
| | richardtier.com

Django Rest Framework integrates well with models to provide out of the box validation, and ModelSerializers allow futher fine-grained custom validation. However, if you're not using a model as the resource of your endpoint then the code required for custom validation of complex data structure can get hairy. If there is a heavily nested data...
1.9 parsecs

Travel
| |
| | www.laceyhenschel.com

If you came here from Part 1 of What You Should Know About Django REST Framework, you may be wondering why I just walked you through a bunch of source code. We stepped through that code because if you know what the main methods of the ModelViewSet do and how they work, you know where to go when you want to tweak the behavior of your viewset. You can pull out the method that contains what you want to change, override it with your own custom behavior, and put it back in. In Part 1, we were writing a BookViewSet. So let's go through a few cases where we might want to customize the behavior of our endpoints and walk through how we would do that.
2.1 parsecs

Travel
| |
| | stribny.name

How to combine request and response serializers into one for use in ModelViewSets.
1.8 parsecs

Travel
| |
| | electric-sql.com

Web development has been progressing through an evolution of state transfer. Hybrid local-first architecture is the natural endgame for this progression.
22.6 parsecs

Travel
|