Building APIs With The Django REST Framework

The tutorial demonstrates how to use Python and Django REST framework in PyCharm to develop APIs.

View at original site


This Django REST framework tutorial focuses on creating a rental platform API using Python and Django REST framework in PyCharm. The tutorial covers various topics, including creating serializers, writing concise and idiomatic views, testing APIs, setting up authentication and permissions, and implementing generic class-based views. By the time you complete the tutorial, you will be able to answer the following questions:

  • What are Django REST framework serializers and how do I create them out of Django models?
  • How do I write concise and idiomatic views with the help of Django REST framework?
  • How do I test APIs by using PyCharm’s Endpoints tool window and the built-in HTTP Client?
  • What is the browsable API?
  • How do I set up authentication and permissions for an API?

Related Resources

How do I do Django APIs in PyCharm
How do I do Django APIs in PyCharm
I recently attended DjangoConf 2024 which kicked off this year’s DSF-PyCharm fundraiser. I attended Felipe’s DRF tutorial where he showed off using PyCharm and even a little bit about endpoints.
Boost your Development Speed with Docker and Django
Boost your Development Speed with Docker and Django
Combining Django and Docker to simplify your development and deployment process.
Introduction to Docker for Python and Django
Introduction to Docker for Python and Django
Using containers to build and deploy applications.