Creating API Views

In this chapter, we have to run our first version of a RESTful Web Service powered by Django. We will write API views to process different HTTP requests and we will perform HTTP requests with command-line and GUI tools. We will analyze how Django and Django REST framework process each HTTP request. We will gain an understanding of:

  • Creating Django views combined with serializer classes
  • CRUD operations with Django views and the request methods
  • Launching Django's development server
  • Making HTTP GET requests that target a collection of instances with command-line tools
  • Making HTTP GET requests that target a single instance with command-line tools
  • Making HTTP GET requests with command-line tools
  • Making HTTP POST requests with ...

Get Django RESTful Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.