Django Rest Framework API #18 APIView GET Object By ID, URL Parameters .

  Рет қаралды 15,387

Code Environment

Code Environment

Күн бұрын

Django Rest Framework API. This video will explain how to get a specific object from the database using APIView get method, by reading the id parameter from the url and use it to get the object.
Source code: github.com/CodeEnvironment/dj...
Django Rest Framework API #17 APIView GET & POST Requests:
• Django Rest Framework ...
Override Create Action Inside ModelViewSet:
• Django Rest Framework ...
ModelViewset With Serializer and Router:
• Django Rest Framework ...
APIView Attributes and Methods:
www.cdrf.co/3.9/rest_framework...
Django Rest Framework Docs:
www.django-rest-framework.org...

Пікірлер: 19
@zebronebanda6339
@zebronebanda6339 5 ай бұрын
Well explained and, thank you
@henryanorue6812
@henryanorue6812 2 жыл бұрын
straight to the point
@felipeaugusto4556
@felipeaugusto4556 3 жыл бұрын
Fantastic!!! Thanks
@dwarkeshkaswala6553
@dwarkeshkaswala6553 3 жыл бұрын
Thanks man ! 👍
@mayurbhure8540
@mayurbhure8540 3 жыл бұрын
really helpful Bro
@chachacha1289
@chachacha1289 2 жыл бұрын
Thank you !
@Bilal5619
@Bilal5619 3 жыл бұрын
Fantastic tutorial !!!!
@codeenvironment
@codeenvironment 3 жыл бұрын
Thank you ✌🏻
@antoinejesusmanuelgutierre7552
@antoinejesusmanuelgutierre7552 3 жыл бұрын
gracias hermano
@yarik83men51
@yarik83men51 3 жыл бұрын
Thank You
@rahulnegi456
@rahulnegi456 3 жыл бұрын
nice one!
@tarandeepsingh6345
@tarandeepsingh6345 2 жыл бұрын
great work boi
@dcatalyst6271
@dcatalyst6271 3 жыл бұрын
really helpful..
@codeenvironment
@codeenvironment 3 жыл бұрын
Glad it helped
@isaachatilima
@isaachatilima 2 жыл бұрын
Hi, hope you see this. How do I include the absolute url for the record when I do a get request? I want to have all the record properties plus the url to get to that record
@amateurastronomer
@amateurastronomer 3 жыл бұрын
Thanks man, i followed everything, except my condition to get the data is different. I want to get all the states based on the country_id. here you are fetching data for one object but in my case it will be multiple objects how do you do it?
@codeenvironment
@codeenvironment 3 жыл бұрын
It depends on how these objects are linked, but you can get the first object and then extract the values from it and use them to get other objects that are linked to it. You can just repeat the same process to perform more than one query to the database
@amateurastronomer
@amateurastronomer 3 жыл бұрын
@@codeenvironment Thank you for the quick reply man! I browsed through your series and got my thing working. 👍 Thanks to you!
@codeenvironment
@codeenvironment 3 жыл бұрын
I’m glad I could help 🙂
Django Rest Framework API #19 / One To One Relationship, Nested Data
25:33
Django Rest Framework for Beginners - Simple CRUD API
14:22
John Watson Rooney
Рет қаралды 47 М.
Дибала против вратаря Легенды
00:33
Mr. Oleynik
Рет қаралды 4,9 МЛН
когда повзрослела // EVA mash
00:40
EVA mash
Рет қаралды 4,1 МЛН
Django REST Framework Oversimplified
9:43
Dennis Ivy
Рет қаралды 304 М.
How To Django: How To Work With URL Parameters and Query Strings
8:28
Master Code Online
Рет қаралды 25 М.
How To Make a Django REST API - Full Tutorial & Deployment
40:18
Tech With Tim
Рет қаралды 59 М.
Django REST Framework - Build an API from Scratch
40:39
Caleb Curry
Рет қаралды 205 М.
Django Rest Framework | Serializers & CRUD
22:40
Dennis Ivy
Рет қаралды 381 М.
Django ORM Primer - Django QuerySet API and QuerySets
15:07
Very Academy
Рет қаралды 8 М.