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 command-line tools
  • Making HTTP PUT requests with command-line tools
  • Making HTTP DELETE requests with command-line tools
  • Making HTTP GET requests with Postman      
  • Making HTTP POST requests with Postman
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset