sdkagent

django-rest-framework API reference

49 public APIs from django-rest-framework (encode/django-rest-framework) — 42 classes, 4 functions, 3 methods. Signatures extracted by static analysis of the actual source.

Repository: encode/django-rest-framework

KindCount
Classes42
Functions4
Methods3

API list

classrest_framework.authentication.RemoteUserAuthentication
REMOTE_USER authentication.
classrest_framework.authentication.SessionAuthentication
Use Django's session framework for authentication.
classrest_framework.authentication.TokenAuthentication
Simple token based authentication.
classrest_framework.authtoken.admin.TokenChangeList
Map to matching User id
classrest_framework.authtoken.models.Token
The default authorization token model.
methodrest_framework.authtoken.models.Token.save(*args, **kwargs)
Save the token instance.
classrest_framework.authtoken.models.TokenProxy
Proxy mapping pk to user pk for use in admin.
classrest_framework.exceptions.APIException
Base class for REST framework exceptions.
classrest_framework.exceptions.ErrorDetail
A string-like object that can additionally have a code.
funcrest_framework.exceptions.bad_request(request, exception, *args, **kwargs)
Generic 400 error handler.
funcrest_framework.exceptions.server_error(request, *args, **kwargs)
Generic 500 error handler.
classrest_framework.fields.BuiltinSignatureError
Built-in function signatures are not inspectable.
classrest_framework.fields.IPAddressField
Support both IPAddressField and GenericIPAddressField
classrest_framework.fields.ReadOnlyField
A read-only field that simply returns the field value.
classrest_framework.generics.CreateAPIView
Concrete view for creating a model instance.
classrest_framework.generics.DestroyAPIView
Concrete view for deleting a model instance.
classrest_framework.generics.GenericAPIView
Base class for all other generic views.
methodrest_framework.generics.GenericAPIView.get_queryset()
Get the list of items for this view.
classrest_framework.generics.ListAPIView
Concrete view for listing a queryset.
classrest_framework.generics.RetrieveAPIView
Concrete view for retrieving a model instance.
classrest_framework.generics.UpdateAPIView
Concrete view for updating a model instance.
classrest_framework.metadata.SimpleMetadata
This is the default metadata implementation.
classrest_framework.mixins.CreateModelMixin
Create a model instance.
classrest_framework.mixins.DestroyModelMixin
Destroy a model instance.
classrest_framework.mixins.ListModelMixin
List a queryset.
classrest_framework.mixins.RetrieveModelMixin
Retrieve a model instance.
classrest_framework.mixins.UpdateModelMixin
Update a model instance.
classrest_framework.pagination.LimitOffsetPagination
A limit/offset based style.
classrest_framework.parsers.FileUploadParser
Parser for file upload data.
classrest_framework.parsers.FormParser
Parser for form data.
classrest_framework.parsers.JSONParser
Parses JSON-serialized data.
classrest_framework.permissions.AllowAny
Allow any access.
classrest_framework.permissions.IsAdminUser
Allows access only to admin users.
classrest_framework.permissions.IsAuthenticated
Allows access only to authenticated users.
classrest_framework.renderers.BrowsableAPIRenderer
HTML renderer used to self-document the API.
classrest_framework.renderers.HTMLFormRenderer
Renderers serializer data into an HTML form.
classrest_framework.renderers.JSONRenderer
Renderer which serializes to JSON.
classrest_framework.renderers.TemplateHTMLRenderer
An HTML renderer for use with templates.
classrest_framework.request.Empty
Placeholder for unset attributes.
classrest_framework.routers.APIRootView
The default basic root view for DefaultRouter
classrest_framework.schemas.inspectors.ViewInspector
Descriptor class on APIView.
methodrest_framework.schemas.inspectors.ViewInspector.view()
View property.
classrest_framework.test.URLPatternsTestCase
Isolate URL patterns on a per-TestCase basis.
classrest_framework.throttling.BaseThrottle
Rate throttling of requests.
classrest_framework.utils.field_mapping.ClassLookupDict
Takes a dictionary with classes as keys.
classrest_framework.utils.formatting.lazy_format
Delay formatting until it's actually needed.
funcrest_framework.utils.timezone.datetime_ambiguous(dt:datetime)
Check whether a datetime is ambiguous.
funcrest_framework.utils.timezone.datetime_exists(dt)
Check if a datetime exists.
classrest_framework.viewsets.ViewSetMixin
This is the magic.

About this data

These signatures were extracted from the public source of encode/django-rest-framework using Python's ast module. Argument names, default values, type annotations and return types are taken verbatim from the code. Implementation bodies are never stored. See how it works for details.

Back to all 805 libraries