Django-Ninja APIs - Modern API Development in Django

Django-Ninja APIs - Modern API Development in Django

27.183 Lượt nghe
Django-Ninja APIs - Modern API Development in Django
Playlist: https://www.youtube.com/playlist?list=PL-2EBeDYMIbRhs2GXpsFcVMEu6oz3CRaC Github: https://github.com/bugbytes-io/django-ninja-nextjs-video In this video, we'll build an API using Django-Ninja that allows us to fetch devices, fetch locations, and assign a location to a device. This video will show django-ninja's use of Schemas - subclasses of Pydantic BaseModels - and the use of decorators to create API endpoints. ☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲: To support the channel and encourage new videos, please consider buying me a coffee here: https://ko-fi.com/bugbytes 📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀: 00:00 Intro 01:25 Setting up Django project in Python virtual environment 03:46 Creating models for IoT Devices 07:46 Adding Data in Django Admin 09:11 Creating Schemas with django-ninja 12:04 Creating django-ninja API endpoints 17:39 Automatic Swagger docs with django-ninja 18:32 Adding Device Detail endpoint with path-parameter 21:07 POST endpoint for adding new devices 33:29 Add endpoint to re-assign location to device 39:19 Adding django-cors-headers to project 𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮: 📖 Blog: https://bugbytes.io/posts/ 👾 Github: https://github.com/bugbytes-io/django-ninja-nextjs-video 📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻: Django-Ninja: https://django-ninja.dev/ ModelSchema: https://django-ninja.dev/guides/response/django-pydantic/ Django-Ninja Request Body: https://django-ninja.dev/guides/input/body/ AutoSlugField: https://django-extensions.readthedocs.io/en/latest/field_extensions.html #python #webdevelopment #django #pydantic