Stop writing boilerplate. Build a complete REST API in Django with just a model, a serializer, and a viewset.
#1about 8 minutes
Understanding the fundamentals of REST API design
REST provides a standardized set of guidelines for creating web APIs using common HTTP methods like GET, POST, PUT, and DELETE.
#2about 6 minutes
Introducing the core concepts of Django REST Framework
Django REST Framework (DRF) simplifies API development with key components like serializers, routers, viewsets, and permission classes.
#3about 6 minutes
Serializing Django models into JSON with ModelSerializer
The ModelSerializer class in DRF automatically converts complex data types, like Django model instances, into native Python datatypes that can be rendered as JSON.
#4about 6 minutes
Building CRUD endpoints quickly with ViewSets and Routers
Using ModelViewSet and a router allows you to automatically generate a complete set of CRUD endpoints for a model with just a few lines of code.
#5about 11 minutes
Implementing permissions and custom authorization logic
Secure endpoints by using built-in permission classes or creating custom logic with `has_permission` and `has_object_permission` to control access.
#6about 10 minutes
Customizing API responses based on user roles
Override the `get_queryset` and `get_serializer_class` methods in a ViewSet to dynamically change the data and fields returned based on the user's permissions.
#7about 4 minutes
Customizing the Django Admin for better data management
The built-in Django admin can be customized to improve usability with features like custom list displays, search fields, and filters.
#8about 5 minutes
Q&A on starting a developer career and hackathons
The speaker shares personal experiences about getting into tech, the motivation to create, and tips for participating in hackathons.
Related jobs
Jobs that call for the skills explored in this talk.
Matching moments
01:09 MIN
Case study: Accelerating development with REST and OpenAPI
The Great API Debate: REST, GraphQL, or gRPC?
02:57 MIN
Structuring APIs with the Flask-RESTful extension
Devouring APIs with Python
05:00 MIN
Designing consistent and intuitive APIs
The Name of the Rose
02:20 MIN
Prerequisites and agenda for the FastAPI talk
Build your backend using FastAPI
02:03 MIN
What is FastAPI and why is it so popular
Intro to FastAPI
02:09 MIN
Understanding APIs and the benefits of Python
No more Node: Build APIs with Flask and test it with Postman
02:39 MIN
Deconstructing REST for a future API wishlist
REST in Peace? What does the API protocol of the future look like? Or do we have it already?
All the videos of Halfstack London 2024!Last month was Halfstack London, a conference about the web, JavaScript and half a dozen other things. We were there to deliver a talk, but also to record all the sessions and we're happy to share them with you. It took a bit as we had to wait for th...
Daniel Cranney
Why developer experience mattersWith technology embedded in almost every aspect of life, and with developers building and maintaining these tools, it’s ensuring that developers operate in the digital world with speed and efficiency, if we are to see these same benefits in the offli...
Chris Heilmann
WeAreDevelopers LIVE days are changing - get ready to take partStarting with this week's Web Dev Day edition of WeAreDevelopers LIVE Days, we changed the the way we run these online conferences. The main differences are:Shorter talks (half an hour tops)More interaction in Q&AA tips and tricks "Did you know" sect...
Chris Heilmann
Dev Digest 134 - Where pixels sing?News and ArticlesWeAreDevelopers LIVE Data and Security Day is on Wednesday, 25/09/2024. Learn about OPC UA Updates, Best Practices for Using GitHub Secrets, Passwordless Web 1.5, Emerging AI Security Risks, Data Privacy in LLMs and get a chance to t...
From learning to earning
Jobs that call for the skills explored in this talk.