▶ Django & HTMX FULL COURSE: https://www.udemy.com/course/django-h...
🙏 Join our channel to get access to perks:
/ @bugbytes3923
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying a coffee here:
https://ko-fi.com/bugbytes
In this video, we'll look at the filtering and query parameter tools provided by Django Ninja when building APIs in Django. We'll see how to use the FilterSchema object to define our filter fields, and how to customize the lookup using a FilterLookup object.
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro to Django-ninja
01:26 Creating an API Route
02:35 Creating django-ninja Schema for Response Data
05:20 Pydantic features in Ninja Schemas
07:42 Filtering response data in Django-ninja
12:33 Case-Insensitive and Contains filters
18:40 Custom Filter Expressions
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
▶ Udemy: https://www.udemy.com/user/bugbytes/
📖 Blog: https://bugbytes.io/posts/
👾 Github: https://github.com/bugbytes-io/
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
django-ninja filtering: https://django-ninja.dev/guides/input...
#django #pythonanddjangofullstackwebdeveloper #python