CodeQL library for Python
codeql/python-all 0.12.1 (changelog, source)
Search

Module RestFramework

INTERNAL: Do not use.

Provides models for the djangorestframework PyPI package (imported as rest_framework)

See

Import path

import semmle.python.frameworks.RestFramework

Classes

RestFrameworkApiViewClass

A class that has a super-type which is a rest_framework APIView class, therefore also becoming a APIView class.

RestFrameworkFunctionBasedView

A function that is a request handler since it is decorated with rest_framework.decorators.api_view

RestFrameworkFunctionBasedViewWithoutKnownRoute

Ensuring that all RestFrameworkFunctionBasedView are also marked as a HTTP::Server::RequestHandler. We only need this for the ones that doesn’t have a known route setup.

Modules

ApiException

Provides models for the rest_framework.exceptions.APIException class and subclasses

Request

Provides models for the rest_framework.request.Request class

Response

Provides models for the rest_framework.response.Response class