Using Constraints, Filtering, Searching, Ordering, and Pagination

In this chapter, we will take advantage of many features included in the Django REST framework to add constraints, pagination, filtering, searching, and ordering features to our RESTful Web Service. We will add a huge amount of features with a few lines of code. We will gain an understanding of:

  • Browsing the API with resources and relationships
  • Defining unique constraints
  • Working with unique constraints
  • Understanding pagination
  • Configuring pagination classes
  • Making requests that paginate results
  • Working with customized pagination classes
  • Making requests that use customized paginated results
  • Configuring filter backend classes
  • Adding filtering, searching, and ordering
  • Working with different types of Django filters
  • Making requests that filter results
  • Composing requests that filter and order results
  • Making requests that perform starts with searches
  • Using the browsable API to test pagination, filtering, searching, and ordering
..................Content has been hidden....................

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