Building API Django
latest
  • Introductions
  • Setup, Models and Admin
  • A simple API with pure Django
  • Serializing and Deserializing Data
  • Views and Generic Views
  • More views and viewsets
  • Access Control
  • Testing and Continuous Integeration
  • Testing and Using API with Postman
  • Documenting APIs (with Swagger and more)
Building API Django
  • Docs »
  • Building APIs with Django and Django Rest Framework
  • Edit on GitHub

Building APIs with Django and Django Rest Framework¶

Building APIs with Django and DRF takes over where the Django tutorials stop. In the Django tutorials, you built a regular Django polls app. We will rebuild an API for a similar app.

In the chapters to come, we will build a REST(ish) api with authorization, rate limiting, first with pure Django and then with DRF. We will cover testing, contious integration, documentation tools and API collaboration tools.

_images/cover.jpg

Chapters:

  • Introductions
    • Who is this book for?
    • How to read this book?
  • Setup, Models and Admin
    • Creating a project
    • Database setup
    • Creating models
    • Activating models
  • A simple API with pure Django
    • The endpoints and the URLS
    • Connecting urls to the views
    • Writing the views
    • Using the API
    • Why do we need DRF?
  • Serializing and Deserializing Data
    • Serialization and Deserialization
    • Creating Serializers
    • The PollSerializer in detail
    • Using the PollSerializer
  • Views and Generic Views
    • Creating Views with APIView
    • Using DRF generic views to simplify code
    • More generic views
    • Next Steps
  • More views and viewsets
    • A better URL structure
    • Changing the views
    • Introducing Viewsets and Routers
    • Choosing the base class to use
    • Next steps
  • Access Control
    • Creating a user
    • Authentication scheme setup
    • The login API
    • Fine grained access control
    • Next steps:
  • Testing and Continuous Integeration
    • Creating Test Requests
    • Testing APIs with authentication
    • Using APIClient
    • .post and create
    • Continuous integration with CircleCI
    • Setting up CircleCI
    • Writing circle.yml file

Appendix¶

  • Testing and Using API with Postman
    • Making HTTP request
    • Response
    • Collections
    • Authentication
  • Documenting APIs (with Swagger and more)
    • Adding swagger documentation
    • Using coreapi for documentation
  • Index
  • Module Index
  • Search Page
Next

© Copyright 2015-2018, Agiliq. Revision d12cf1b6.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
Downloads
pdf
htmlzip
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.