Known subclasses: rest_framework.authtoken.views.ObtainAuthToken
, rest_framework.generics.GenericAPIView
, rest_framework.routers.APIRootView
, rest_framework.schemas.views.SchemaView
, rest_framework.viewsets.ViewSet
Undocumented
Class Method | as |
Store the original class on the view function. |
Method | check |
Check if the request should be permitted for a given object. Raises an appropriate exception if the request is not permitted. |
Method | check |
Check if the request should be permitted. Raises an appropriate exception if the request is not permitted. |
Method | check |
Check if request should be throttled. Raises an appropriate exception if the request is throttled. |
Method | determine |
If versioning is being used, then determine any API version for the incoming request. Returns a two-tuple of (version, versioning_scheme) |
Method | dispatch |
`.dispatch()` is pretty much the same as Django's regular dispatch, but with extra hooks for startup, finalize, and exception handling. |
Method | finalize |
Returns the final response object. |
Method | get |
If a request is unauthenticated, determine the WWW-Authenticate header to use for 401 responses, if any. |
Method | get |
Instantiates and returns the list of authenticators that this view can use. |
Method | get |
Instantiate and return the content negotiation class to use. |
Method | get |
Returns the exception handler that this view uses. |
Method | get |
Returns a dict that is passed through to EXCEPTION_HANDLER, as the `context` argument. |
Method | get |
Determine if the request includes a '.json' style format suffix |
Method | get |
Returns a dict that is passed through to Parser.parse(), as the `parser_context` keyword argument. |
Method | get |
Instantiates and returns the list of parsers that this view can use. |
Method | get |
Instantiates and returns the list of permissions that this view requires. |
Method | get |
Returns a dict that is passed through to Renderer.render(), as the `renderer_context` keyword argument. |
Method | get |
Instantiates and returns the list of renderers that this view can use. |
Method | get |
Instantiates and returns the list of throttles that this view uses. |
Method | get |
Return some descriptive text for the view, as used in OPTIONS responses and in the browsable API. |
Method | get |
Return the view name, as used in OPTIONS responses and in the browsable API. |
Method | handle |
Handle any exception that occurs, by returning an appropriate response, or re-raising the error. |
Method | http |
If `request.method` does not correspond to a handler method, determine what kind of exception to raise. |
Method | initial |
Runs anything that needs to occur prior to calling the method handler. |
Method | initialize |
Returns the initial request object. |
Method | options |
Handler method for HTTP 'OPTIONS' request. |
Method | perform |
Perform authentication on the incoming request. |
Method | perform |
Determine which renderer and media type to use render the response. |
Method | permission |
If request is not permitted, determine what kind of exception to raise. |
Method | raise |
Undocumented |
Method | throttled |
If request is throttled, determine what kind of exception to raise. |
Class Variable | schema |
Undocumented |
Instance Variable | args |
Undocumented |
Instance Variable | format |
Undocumented |
Instance Variable | headers |
Undocumented |
Instance Variable | kwargs |
Undocumented |
Instance Variable | request |
Undocumented |
Instance Variable | response |
Undocumented |
Property | allowed |
Wrap Django's private `_allowed_methods` interface in a public property. |
Property | default |
Undocumented |
Instance Variable | _negotiator |
Undocumented |
Store the original class on the view function. This allows us to discover information about the view when we do URL reverse lookups. Used for breadcrumb generation.
Check if the request should be permitted for a given object. Raises an appropriate exception if the request is not permitted.
Check if the request should be permitted. Raises an appropriate exception if the request is not permitted.
If versioning is being used, then determine any API version for the incoming request. Returns a two-tuple of (version, versioning_scheme)
`.dispatch()` is pretty much the same as Django's regular dispatch, but with extra hooks for startup, finalize, and exception handling.
If a request is unauthenticated, determine the WWW-Authenticate header to use for 401 responses, if any.
Returns a dict that is passed through to Renderer.render(), as the `renderer_context` keyword argument.
rest_framework.schemas.views.SchemaView
Handle any exception that occurs, by returning an appropriate response, or re-raising the error.
If `request.method` does not correspond to a handler method, determine what kind of exception to raise.
Perform authentication on the incoming request. Note that if you override this and simply 'pass', then authentication will instead be performed lazily, the first time either `request.user` or `request.auth` is accessed.
rest_framework.authtoken.views.ObtainAuthToken
, rest_framework.routers.APIRootView
, rest_framework.schemas.views.SchemaView
Undocumented