Django-Ninja APIs - Modern API Development in Django

Описание к видео Django-Ninja APIs - Modern API Development in Django

Github: https://github.com/bugbytes-io/django...

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...
🐦 Twitter:   / bugbytesio  

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
Django-Ninja: https://django-ninja.dev/
ModelSchema: https://django-ninja.dev/guides/respo...
Django-Ninja Request Body: https://django-ninja.dev/guides/input...
AutoSlugField: https://django-extensions.readthedocs...

#python #webdevelopment #django #pydantic

Комментарии

Информация по комментариям в разработке