Creating API Views (Function Based API Views) | Learn Django REST Framework #2

preview_player
Показать описание
In this video, I talk about the concept of API Views in Django REST Framework and how they are different from Django's default Views. We also walk through how to create views functions and map them onto URLs. I introduce Insomnia.

#Python #Django

Link to Insomnia:

API Views documentation:

SOURCE CODE:

Please Buy me a Coffee:
Рекомендации по теме
Комментарии
Автор

I was struggling with DRF now it's all clear, thanks from Brazil

aaaaaaaaaa
Автор

this is good one nice sir ....i am from sri lanka

DulithyaDilakshi
Автор

i have an issue, i had installed djangorestframework but when i want to use it it doesn't work.
can help me please

amineelhanine
Автор

Thanks for the tutorial. It's simple and amazing. However, I think there are some things you include that are not really necessary. Like "request: Request". Leaving it as just "request", won't it give same result?

infohub
Автор

thank you, it is a really good course.

raghodalhossny
Автор

how to change django-admin panle in black themes? Can you please mention on that ?

blessycheriyan
Автор

we need not to import Request!!
def home(request):
pass
we can do it in this way also

and why http_method_names=['POST']? we can simply use like @api_view(["GET"])

sir any suggestion?

nirabindudas
visit shbcf.ru