Explore >> Select a destination


You are here

sam.hooke.me
| | www.laceyhenschel.com
9.9 parsecs away

Travel
| | Sometimes the endpoints you get when you use a ModelViewSet aren't enough and you need to add extra endpoints for custom functions. To do this, you could use the APIView class and add a custom route to your `urls.py` file, and that would work fine. But if you have a viewset already, and you feel like this new endpoint belongs with the other endpoints in your viewset, you can use DRF's @action decorator to add a custom endpoint. This means you don't have to change your urls.py -- the method you decorate w...
| | richardtier.com
10.4 parsecs away

Travel
| | 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...
| | www.django-rest-framework.org
7.9 parsecs away

Travel
| | Django, API, REST, Viewsets
| | thedulinreport.com
88.4 parsecs away

Travel
| Reading about well respected people who shun management roles reaffirms my long-term goal of becoming a trusted adviser or a chief technologist to a visionary business leader. In my mental exercises I've come up with several scenarios of accomplishing this.