diff --git a/api-guide/requests.html b/api-guide/requests.html index 62adc621d..df81f0129 100644 --- a/api-guide/requests.html +++ b/api-guide/requests.html @@ -122,7 +122,7 @@
The APIView class or @api_view decorator will ensure that this property is automatically to a list of Authentication instances, based on the authentication_classes set on the view or based on the DEFAULT_AUTHENTICATORS setting.
You won't typically need to access this property.
REST framework supports a few browser enhancments such as broser-based PUT and DELETE forms.
request.method returns the uppercased string representation of the request's HTTP method.
Notice that we're using hyperlinked relations in this case, with HyperlinkedModelSerializer. You can also use primary key and various other relationships, but hyperlinking is good RESTful design.
Right, we'd better right some views then. Open quickstart/views.py and get typing.
Right, we'd better write some views then. Open quickstart/views.py and get typing.
from django.contrib.auth.models import User, Group
from rest_framework import generics
from rest_framework.decorators import api_view