Which is the most appropriate HTTP method to update a single field for an existing resource:
PUT
POST
PATCH
Which of the following pagination classes provides a limit/offset based style in Django REST Framework:
rest_framework.pagination.LimitOffsetPagination
rest_framework.pagination.LimitOffsetPaging
rest_framework.styles.LimitOffsetPagination
The
rest_framework.authentication.BasicAuthentication
class:Works with Django's session framework for authentication.
Provides an HTTP Basic authentication against username and password.
Provides a simple token based authentication.
The
rest_framework.authentication.SessionAuthentication
class:Works with Django's session framework for authentication.
Provides an HTTP Basic authentication against username and password.
Provides a simple token based authentication.
The value of which of the following settings keys specify a global setting with a tuple of string whose values indicate the classes that we want to use for authentication...
You're reading from Building RESTful Python Web Services
The rest of the page is locked
You have been reading a chapter from
Building RESTful Python Web ServicesPublished in: Oct 2016Publisher: PacktISBN-13: 9781786462251
© 2016 Packt Publishing Limited All Rights Reserved