KinMatch Rest API¶
kind.views.__init__¶
-
class
kind.views.__init__.
AlleleFrequenciesView
(*args, **kwargs)[소스]¶ -
add_or_update
(request)¶
-
allowed_methods
¶ Wrap Django’s private _allowed_methods interface in a public property.
-
as_view
(**initkwargs)¶ 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.
-
authentication_classes
= [<class 'rest_framework.authentication.SessionAuthentication'>, <class 'rest_framework.authentication.BasicAuthentication'>]¶
-
check_object_permissions
(request, obj)¶ Check if the request should be permitted for a given object. Raises an appropriate exception if the request is not permitted.
-
check_permissions
(request)¶ Check if the request should be permitted. Raises an appropriate exception if the request is not permitted.
-
check_throttles
(request)¶ Check if request should be throttled. Raises an appropriate exception if the request is throttled.
-
content_negotiation_class
¶ alias of
DefaultContentNegotiation
-
default_response_headers
¶
-
delete
(request, *args, **kwargs)¶
-
delete_process
(request, *args, **kwargs)¶
-
dispatch
(request, *args, **kwargs)¶ .dispatch() is pretty much the same as Django’s regular dispatch, but with extra hooks for startup, finalize, and exception handling.
-
finalize_response
(request, response, *args, **kwargs)¶ Returns the final response object.
-
get
(request, *args, **kwargs)¶
-
get_authenticate_header
(request)¶ If a request is unauthenticated, determine the WWW-Authenticate header to use for 401 responses, if any.
-
get_authenticators
()¶ Instantiates and returns the list of authenticators that this view can use.
-
get_content_negotiator
()¶ Instantiate and return the content negotiation class to use.
-
get_format_suffix
(**kwargs)¶ Determine if the request includes a ‘.json’ style format suffix
-
get_parser_context
(http_request)¶ Returns a dict that is passed through to Parser.parse(), as the parser_context keyword argument.
-
get_parsers
()¶ Instantiates and returns the list of parsers that this view can use.
-
get_permissions
()¶ Instantiates and returns the list of permissions that this view requires.
-
get_process
(request, *args, **kwargs)¶
-
get_renderer_context
()¶ Returns a dict that is passed through to Renderer.render(), as the renderer_context keyword argument.
-
get_renderers
()¶ Instantiates and returns the list of renderers that this view can use.
-
get_throttles
()¶ Instantiates and returns the list of throttles that this view uses.
-
get_view_description
(html=False)¶ Return some descriptive text for the view, as used in OPTIONS responses and in the browsable API.
-
get_view_name
()¶ Return the view name, as used in OPTIONS responses and in the browsable API.
-
handle_exception
(exc)¶ Handle any exception that occurs, by returning an appropriate response, or re-raising the error.
-
http_method_names
= ['get', 'post', 'put', 'patch', 'delete', 'head', 'options', 'trace']¶
-
http_method_not_allowed
(request, *args, **kwargs)¶ If request.method does not correspond to a handler method, determine what kind of exception to raise.
-
initial
(request, *args, **kwargs)¶ Runs anything that needs to occur prior to calling the method handler.
-
initialize_request
(request, *args, **kwargs)¶ Returns the initial request object.
-
list_process
(request, *args, **kwargs)¶
-
metadata
(request)¶ Return a dictionary of metadata about the view. Used to return responses for OPTIONS requests.
-
options
(request, *args, **kwargs)¶ Handler method for HTTP ‘OPTIONS’ request. We may as well implement this as Django will otherwise provide a less useful default implementation.
-
parser_classes
= [<class 'rest_framework.parsers.JSONParser'>, <class 'rest_framework.parsers.FormParser'>, <class 'rest_framework.parsers.MultiPartParser'>]¶
-
perform_authentication
(request)¶ 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.
-
perform_content_negotiation
(request, force=False)¶ Determine which renderer and media type to use render the response.
-
permission_classes
= (<class 'rest_framework.permissions.IsAuthenticated'>,)¶
-
permission_denied
(request)¶ If request is not permitted, determine what kind of exception to raise.
-
post
(request, *args, **kwargs)¶
-
post_process
(request, *args, **kwargs)¶
-
process
(request, action, *args, **kwargs)¶
-
put
(request, *args, **kwargs)¶
-
put_process
(request, *args, **kwargs)¶
-
renderer_classes
= (<class 'rest_framework.renderers.JSONRenderer'>, <class 'rest_framework_csv.renderers.CSVRenderer'>, <class 'kind.views.__init__.TSVRenderer'>)¶
-
settings
= <rest_framework.settings.APISettings object>¶
-
throttle_classes
= ()¶
-
throttled
(request, wait)¶ If request is throttled, determine what kind of exception to raise.
-
-
exception
kind.views.__init__.
BadRequestException
(*args, **kwargs)[소스]¶ -
args
¶
-
with_traceback
()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
-
class
kind.views.__init__.
BaseViewMixin
(*args, **kwargs)[소스]¶ -
allowed_methods
¶ Wrap Django’s private _allowed_methods interface in a public property.
-
as_view
(**initkwargs)¶ 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.
-
authentication_classes
= [<class 'rest_framework.authentication.SessionAuthentication'>, <class 'rest_framework.authentication.BasicAuthentication'>]¶
-
check_object_permissions
(request, obj)¶ Check if the request should be permitted for a given object. Raises an appropriate exception if the request is not permitted.
-
check_permissions
(request)¶ Check if the request should be permitted. Raises an appropriate exception if the request is not permitted.
-
check_throttles
(request)¶ Check if request should be throttled. Raises an appropriate exception if the request is throttled.
-
content_negotiation_class
¶ alias of
DefaultContentNegotiation
-
default_response_headers
¶
-
dispatch
(request, *args, **kwargs)¶ .dispatch() is pretty much the same as Django’s regular dispatch, but with extra hooks for startup, finalize, and exception handling.
-
finalize_response
(request, response, *args, **kwargs)¶ Returns the final response object.
-
get_authenticate_header
(request)¶ If a request is unauthenticated, determine the WWW-Authenticate header to use for 401 responses, if any.
-
get_authenticators
()¶ Instantiates and returns the list of authenticators that this view can use.
-
get_content_negotiator
()¶ Instantiate and return the content negotiation class to use.
-
get_format_suffix
(**kwargs)¶ Determine if the request includes a ‘.json’ style format suffix
-
get_parser_context
(http_request)¶ Returns a dict that is passed through to Parser.parse(), as the parser_context keyword argument.
-
get_parsers
()¶ Instantiates and returns the list of parsers that this view can use.
-
get_permissions
()¶ Instantiates and returns the list of permissions that this view requires.
-
get_renderer_context
()¶ Returns a dict that is passed through to Renderer.render(), as the renderer_context keyword argument.
-
get_renderers
()¶ Instantiates and returns the list of renderers that this view can use.
-
get_throttles
()¶ Instantiates and returns the list of throttles that this view uses.
-
get_view_description
(html=False)¶ Return some descriptive text for the view, as used in OPTIONS responses and in the browsable API.
-
get_view_name
()¶ Return the view name, as used in OPTIONS responses and in the browsable API.
-
handle_exception
(exc)¶ Handle any exception that occurs, by returning an appropriate response, or re-raising the error.
-
http_method_names
= ['get', 'post', 'put', 'patch', 'delete', 'head', 'options', 'trace']¶
-
http_method_not_allowed
(request, *args, **kwargs)¶ If request.method does not correspond to a handler method, determine what kind of exception to raise.
-
initial
(request, *args, **kwargs)¶ Runs anything that needs to occur prior to calling the method handler.
-
initialize_request
(request, *args, **kwargs)¶ Returns the initial request object.
-
metadata
(request)¶ Return a dictionary of metadata about the view. Used to return responses for OPTIONS requests.
-
options
(request, *args, **kwargs)¶ Handler method for HTTP ‘OPTIONS’ request. We may as well implement this as Django will otherwise provide a less useful default implementation.
-
parser_classes
= [<class 'rest_framework.parsers.JSONParser'>, <class 'rest_framework.parsers.FormParser'>, <class 'rest_framework.parsers.MultiPartParser'>]¶
-
perform_authentication
(request)¶ 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.
-
perform_content_negotiation
(request, force=False)¶ Determine which renderer and media type to use render the response.
-
permission_classes
= (<class 'rest_framework.permissions.IsAuthenticated'>,)¶
-
permission_denied
(request)¶ If request is not permitted, determine what kind of exception to raise.
-
renderer_classes
= (<class 'rest_framework.renderers.JSONRenderer'>, <class 'rest_framework_csv.renderers.CSVRenderer'>, <class 'kind.views.__init__.TSVRenderer'>)¶
-
settings
= <rest_framework.settings.APISettings object>¶
-
throttle_classes
= ()¶
-
throttled
(request, wait)¶ If request is throttled, determine what kind of exception to raise.
-
-
class
kind.views.__init__.
CheckBetweenView
(*args, **kwargs)[소스]¶ -
allowed_methods
¶ Wrap Django’s private _allowed_methods interface in a public property.
-
as_view
(**initkwargs)¶ 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.
-
authentication_classes
= [<class 'rest_framework.authentication.SessionAuthentication'>, <class 'rest_framework.authentication.BasicAuthentication'>]¶
-
check_between
(request, *args, **kwargs)¶
-
check_object_permissions
(request, obj)¶ Check if the request should be permitted for a given object. Raises an appropriate exception if the request is not permitted.
-
check_permissions
(request)¶ Check if the request should be permitted. Raises an appropriate exception if the request is not permitted.
-
check_throttles
(request)¶ Check if request should be throttled. Raises an appropriate exception if the request is throttled.
-
content_negotiation_class
¶ alias of
DefaultContentNegotiation
-
default_response_headers
¶
-
delete
(request, *args, **kwargs)¶
-
dispatch
(request, *args, **kwargs)¶ .dispatch() is pretty much the same as Django’s regular dispatch, but with extra hooks for startup, finalize, and exception handling.
-
finalize_response
(request, response, *args, **kwargs)¶ Returns the final response object.
-
get
(request, *args, **kwargs)¶
-
get_authenticate_header
(request)¶ If a request is unauthenticated, determine the WWW-Authenticate header to use for 401 responses, if any.
-
get_authenticators
()¶ Instantiates and returns the list of authenticators that this view can use.
-
get_content_negotiator
()¶ Instantiate and return the content negotiation class to use.
-
get_format_suffix
(**kwargs)¶ Determine if the request includes a ‘.json’ style format suffix
-
get_parser_context
(http_request)¶ Returns a dict that is passed through to Parser.parse(), as the parser_context keyword argument.
-
get_parsers
()¶ Instantiates and returns the list of parsers that this view can use.
-
get_permissions
()¶ Instantiates and returns the list of permissions that this view requires.
-
get_renderer_context
()¶ Returns a dict that is passed through to Renderer.render(), as the renderer_context keyword argument.
-
get_renderers
()¶ Instantiates and returns the list of renderers that this view can use.
-
get_throttles
()¶ Instantiates and returns the list of throttles that this view uses.
-
get_view_description
(html=False)¶ Return some descriptive text for the view, as used in OPTIONS responses and in the browsable API.
-
get_view_name
()¶ Return the view name, as used in OPTIONS responses and in the browsable API.
-
handle_exception
(exc)¶ Handle any exception that occurs, by returning an appropriate response, or re-raising the error.
-
http_method_names
= ['get', 'post', 'put', 'patch', 'delete', 'head', 'options', 'trace']¶
-
http_method_not_allowed
(request, *args, **kwargs)¶ If request.method does not correspond to a handler method, determine what kind of exception to raise.
-
initial
(request, *args, **kwargs)¶ Runs anything that needs to occur prior to calling the method handler.
-
initialize_request
(request, *args, **kwargs)¶ Returns the initial request object.
-
metadata
(request)¶ Return a dictionary of metadata about the view. Used to return responses for OPTIONS requests.
-
options
(request, *args, **kwargs)¶ Handler method for HTTP ‘OPTIONS’ request. We may as well implement this as Django will otherwise provide a less useful default implementation.
-
parser_classes
= [<class 'rest_framework.parsers.JSONParser'>, <class 'rest_framework.parsers.FormParser'>, <class 'rest_framework.parsers.MultiPartParser'>]¶
-
perform_authentication
(request)¶ 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.
-
perform_content_negotiation
(request, force=False)¶ Determine which renderer and media type to use render the response.
-
permission_classes
= (<class 'rest_framework.permissions.IsAuthenticated'>,)¶
-
permission_denied
(request)¶ If request is not permitted, determine what kind of exception to raise.
-
post
(request, *args, **kwargs)¶
-
process
(request, action, *args, **kwargs)¶
-
put
(request, *args, **kwargs)¶
-
renderer_classes
= (<class 'rest_framework.renderers.JSONRenderer'>, <class 'rest_framework_csv.renderers.CSVRenderer'>, <class 'kind.views.__init__.TSVRenderer'>)¶
-
search
(request, *args, **kwargs)¶
-
search_multiple
(request, *args, **kwargs)¶
-
settings
= <rest_framework.settings.APISettings object>¶
-
throttle_classes
= ()¶
-
throttled
(request, wait)¶ If request is throttled, determine what kind of exception to raise.
-
-
class
kind.views.__init__.
GenotypesView
(*args, **kwargs)[소스]¶ -
add
(request)¶
-
add_or_update_genotypefile
(request)¶
-
allowed_methods
¶ Wrap Django’s private _allowed_methods interface in a public property.
-
as_view
(**initkwargs)¶ 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.
-
authentication_classes
= [<class 'rest_framework.authentication.SessionAuthentication'>, <class 'rest_framework.authentication.BasicAuthentication'>]¶
-
check_object_permissions
(request, obj)¶ Check if the request should be permitted for a given object. Raises an appropriate exception if the request is not permitted.
-
check_permissions
(request)¶ Check if the request should be permitted. Raises an appropriate exception if the request is not permitted.
-
check_throttles
(request)¶ Check if request should be throttled. Raises an appropriate exception if the request is throttled.
-
content_negotiation_class
¶ alias of
DefaultContentNegotiation
-
default_response_headers
¶
-
delete
(request, *args, **kwargs)¶
-
delete_process
(request, *args, **kwargs)¶
-
dispatch
(request, *args, **kwargs)¶ .dispatch() is pretty much the same as Django’s regular dispatch, but with extra hooks for startup, finalize, and exception handling.
-
finalize_response
(request, response, *args, **kwargs)¶ Returns the final response object.
-
get
(request, *args, **kwargs)¶
-
get_authenticate_header
(request)¶ If a request is unauthenticated, determine the WWW-Authenticate header to use for 401 responses, if any.
-
get_authenticators
()¶ Instantiates and returns the list of authenticators that this view can use.
-
get_content_negotiator
()¶ Instantiate and return the content negotiation class to use.
-
get_format_suffix
(**kwargs)¶ Determine if the request includes a ‘.json’ style format suffix
-
get_parser_context
(http_request)¶ Returns a dict that is passed through to Parser.parse(), as the parser_context keyword argument.
-
get_parsers
()¶ Instantiates and returns the list of parsers that this view can use.
-
get_permissions
()¶ Instantiates and returns the list of permissions that this view requires.
-
get_process
(request, *args, **kwargs)¶
-
get_renderer_context
()¶ Returns a dict that is passed through to Renderer.render(), as the renderer_context keyword argument.
-
get_renderers
()¶ Instantiates and returns the list of renderers that this view can use.
-
get_throttles
()¶ Instantiates and returns the list of throttles that this view uses.
-
get_view_description
(html=False)¶ Return some descriptive text for the view, as used in OPTIONS responses and in the browsable API.
-
get_view_name
()¶ Return the view name, as used in OPTIONS responses and in the browsable API.
-
handle_exception
(exc)¶ Handle any exception that occurs, by returning an appropriate response, or re-raising the error.
-
http_method_names
= ['get', 'post', 'put', 'patch', 'delete', 'head', 'options', 'trace']¶
-
http_method_not_allowed
(request, *args, **kwargs)¶ If request.method does not correspond to a handler method, determine what kind of exception to raise.
-
initial
(request, *args, **kwargs)¶ Runs anything that needs to occur prior to calling the method handler.
-
initialize_request
(request, *args, **kwargs)¶ Returns the initial request object.
-
list_process
(request, *args, **kwargs)¶
-
metadata
(request)¶ Return a dictionary of metadata about the view. Used to return responses for OPTIONS requests.
-
options
(request, *args, **kwargs)¶ Handler method for HTTP ‘OPTIONS’ request. We may as well implement this as Django will otherwise provide a less useful default implementation.
-
parser_classes
= [<class 'rest_framework.parsers.JSONParser'>, <class 'rest_framework.parsers.FormParser'>, <class 'rest_framework.parsers.MultiPartParser'>]¶
-
perform_authentication
(request)¶ 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.
-
perform_content_negotiation
(request, force=False)¶ Determine which renderer and media type to use render the response.
-
permission_classes
= (<class 'rest_framework.permissions.IsAuthenticated'>,)¶
-
permission_denied
(request)¶ If request is not permitted, determine what kind of exception to raise.
-
post
(request, *args, **kwargs)¶
-
post_process
(request, *args, **kwargs)¶
-
process
(request, action, *args, **kwargs)¶
-
put
(request, *args, **kwargs)¶
-
put_process
(request, *args, **kwargs)¶
-
renderer_classes
= (<class 'rest_framework.renderers.JSONRenderer'>, <class 'rest_framework_csv.renderers.CSVRenderer'>, <class 'kind.views.__init__.TSVRenderer'>)¶
-
settings
= <rest_framework.settings.APISettings object>¶
-
throttle_classes
= ()¶
-
throttled
(request, wait)¶ If request is throttled, determine what kind of exception to raise.
-
update_genotype
(request)¶
-
-
class
kind.views.__init__.
GroupView
(*args, **kwargs)[소스]¶ -
allowed_methods
¶ Wrap Django’s private _allowed_methods interface in a public property.
-
as_view
(**initkwargs)¶ 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.
-
authentication_classes
= [<class 'rest_framework.authentication.SessionAuthentication'>, <class 'rest_framework.authentication.BasicAuthentication'>]¶
-
check_object_permissions
(request, obj)¶ Check if the request should be permitted for a given object. Raises an appropriate exception if the request is not permitted.
-
check_permissions
(request)¶ Check if the request should be permitted. Raises an appropriate exception if the request is not permitted.
-
check_throttles
(request)¶ Check if request should be throttled. Raises an appropriate exception if the request is throttled.
-
content_negotiation_class
¶ alias of
DefaultContentNegotiation
-
default_response_headers
¶
-
delete
(request, *args, **kwargs)¶
-
delete_process
(request, *args, **kwargs)¶
-
dispatch
(request, *args, **kwargs)¶ .dispatch() is pretty much the same as Django’s regular dispatch, but with extra hooks for startup, finalize, and exception handling.
-
finalize_response
(request, response, *args, **kwargs)¶ Returns the final response object.
-
get
(request, *args, **kwargs)¶
-
get_authenticate_header
(request)¶ If a request is unauthenticated, determine the WWW-Authenticate header to use for 401 responses, if any.
-
get_authenticators
()¶ Instantiates and returns the list of authenticators that this view can use.
-
get_content_negotiator
()¶ Instantiate and return the content negotiation class to use.
-
get_format_suffix
(**kwargs)¶ Determine if the request includes a ‘.json’ style format suffix
-
get_parser_context
(http_request)¶ Returns a dict that is passed through to Parser.parse(), as the parser_context keyword argument.
-
get_parsers
()¶ Instantiates and returns the list of parsers that this view can use.
-
get_permissions
()¶ Instantiates and returns the list of permissions that this view requires.
-
get_process
(request, *args, **kwargs)¶
-
get_renderer_context
()¶ Returns a dict that is passed through to Renderer.render(), as the renderer_context keyword argument.
-
get_renderers
()¶ Instantiates and returns the list of renderers that this view can use.
-
get_throttles
()¶ Instantiates and returns the list of throttles that this view uses.
-
get_view_description
(html=False)¶ Return some descriptive text for the view, as used in OPTIONS responses and in the browsable API.
-
get_view_name
()¶ Return the view name, as used in OPTIONS responses and in the browsable API.
-
handle_exception
(exc)¶ Handle any exception that occurs, by returning an appropriate response, or re-raising the error.
-
http_method_names
= ['get', 'post', 'put', 'patch', 'delete', 'head', 'options', 'trace']¶
-
http_method_not_allowed
(request, *args, **kwargs)¶ If request.method does not correspond to a handler method, determine what kind of exception to raise.
-
initial
(request, *args, **kwargs)¶ Runs anything that needs to occur prior to calling the method handler.
-
initialize_request
(request, *args, **kwargs)¶ Returns the initial request object.
-
list_process
(request, *args, **kwargs)¶
-
metadata
(request)¶ Return a dictionary of metadata about the view. Used to return responses for OPTIONS requests.
-
options
(request, *args, **kwargs)¶ Handler method for HTTP ‘OPTIONS’ request. We may as well implement this as Django will otherwise provide a less useful default implementation.
-
parser_classes
= [<class 'rest_framework.parsers.JSONParser'>, <class 'rest_framework.parsers.FormParser'>, <class 'rest_framework.parsers.MultiPartParser'>]¶
-
perform_authentication
(request)¶ 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.
-
perform_content_negotiation
(request, force=False)¶ Determine which renderer and media type to use render the response.
-
permission_classes
= (<class 'rest_framework.permissions.IsAuthenticated'>,)¶
-
permission_denied
(request)¶ If request is not permitted, determine what kind of exception to raise.
-
post
(request, *args, **kwargs)¶
-
post_process
(request, *args, **kwargs)¶
-
process
(request, action, *args, **kwargs)¶
-
put
(request, *args, **kwargs)¶
-
put_process
(request, *args, **kwargs)¶
-
renderer_classes
= (<class 'rest_framework.renderers.JSONRenderer'>, <class 'rest_framework_csv.renderers.CSVRenderer'>, <class 'kind.views.__init__.TSVRenderer'>)¶
-
settings
= <rest_framework.settings.APISettings object>¶
-
throttle_classes
= ()¶
-
throttled
(request, wait)¶ If request is throttled, determine what kind of exception to raise.
-
-
exception
kind.views.__init__.
NotAllowedMethodException
(*args, **kwargs)[소스]¶ -
args
¶
-
with_traceback
()¶ Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
-
-
class
kind.views.__init__.
SearchBaseViewMixin
(*args, **kwargs)[소스]¶ -
allowed_methods
¶ Wrap Django’s private _allowed_methods interface in a public property.
-
as_view
(**initkwargs)¶ 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.
-
authentication_classes
= [<class 'rest_framework.authentication.SessionAuthentication'>, <class 'rest_framework.authentication.BasicAuthentication'>]¶
-
check_object_permissions
(request, obj)¶ Check if the request should be permitted for a given object. Raises an appropriate exception if the request is not permitted.
-
check_permissions
(request)¶ Check if the request should be permitted. Raises an appropriate exception if the request is not permitted.
-
check_throttles
(request)¶ Check if request should be throttled. Raises an appropriate exception if the request is throttled.
-
content_negotiation_class
¶ alias of
DefaultContentNegotiation
-
default_response_headers
¶
-
delete
(request, *args, **kwargs)¶
-
dispatch
(request, *args, **kwargs)¶ .dispatch() is pretty much the same as Django’s regular dispatch, but with extra hooks for startup, finalize, and exception handling.
-
finalize_response
(request, response, *args, **kwargs)¶ Returns the final response object.
-
get
(request, *args, **kwargs)¶
-
get_authenticate_header
(request)¶ If a request is unauthenticated, determine the WWW-Authenticate header to use for 401 responses, if any.
-
get_authenticators
()¶ Instantiates and returns the list of authenticators that this view can use.
-
get_content_negotiator
()¶ Instantiate and return the content negotiation class to use.
-
get_format_suffix
(**kwargs)¶ Determine if the request includes a ‘.json’ style format suffix
-
get_parser_context
(http_request)¶ Returns a dict that is passed through to Parser.parse(), as the parser_context keyword argument.
-
get_parsers
()¶ Instantiates and returns the list of parsers that this view can use.
-
get_permissions
()¶ Instantiates and returns the list of permissions that this view requires.
-
get_renderer_context
()¶ Returns a dict that is passed through to Renderer.render(), as the renderer_context keyword argument.
-
get_renderers
()¶ Instantiates and returns the list of renderers that this view can use.
-
get_throttles
()¶ Instantiates and returns the list of throttles that this view uses.
-
get_view_description
(html=False)¶ Return some descriptive text for the view, as used in OPTIONS responses and in the browsable API.
-
get_view_name
()¶ Return the view name, as used in OPTIONS responses and in the browsable API.
-
handle_exception
(exc)¶ Handle any exception that occurs, by returning an appropriate response, or re-raising the error.
-
http_method_names
= ['get', 'post', 'put', 'patch', 'delete', 'head', 'options', 'trace']¶
-
http_method_not_allowed
(request, *args, **kwargs)¶ If request.method does not correspond to a handler method, determine what kind of exception to raise.
-
initial
(request, *args, **kwargs)¶ Runs anything that needs to occur prior to calling the method handler.
-
initialize_request
(request, *args, **kwargs)¶ Returns the initial request object.
-
metadata
(request)¶ Return a dictionary of metadata about the view. Used to return responses for OPTIONS requests.
-
options
(request, *args, **kwargs)¶ Handler method for HTTP ‘OPTIONS’ request. We may as well implement this as Django will otherwise provide a less useful default implementation.
-
parser_classes
= [<class 'rest_framework.parsers.JSONParser'>, <class 'rest_framework.parsers.FormParser'>, <class 'rest_framework.parsers.MultiPartParser'>]¶
-
perform_authentication
(request)¶ 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.
-
perform_content_negotiation
(request, force=False)¶ Determine which renderer and media type to use render the response.
-
permission_classes
= (<class 'rest_framework.permissions.IsAuthenticated'>,)¶
-
permission_denied
(request)¶ If request is not permitted, determine what kind of exception to raise.
-
post
(request, *args, **kwargs)¶
-
process
(request, action, *args, **kwargs)¶
-
put
(request, *args, **kwargs)¶
-
renderer_classes
= (<class 'rest_framework.renderers.JSONRenderer'>, <class 'rest_framework_csv.renderers.CSVRenderer'>, <class 'kind.views.__init__.TSVRenderer'>)¶
-
settings
= <rest_framework.settings.APISettings object>¶
-
throttle_classes
= ()¶
-
throttled
(request, wait)¶ If request is throttled, determine what kind of exception to raise.
-
-
class
kind.views.__init__.
SearchMultipleView
(*args, **kwargs)[소스]¶ -
allowed_methods
¶ Wrap Django’s private _allowed_methods interface in a public property.
-
as_view
(**initkwargs)¶ 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.
-
authentication_classes
= [<class 'rest_framework.authentication.SessionAuthentication'>, <class 'rest_framework.authentication.BasicAuthentication'>]¶
-
check_between
(request, *args, **kwargs)¶
-
check_object_permissions
(request, obj)¶ Check if the request should be permitted for a given object. Raises an appropriate exception if the request is not permitted.
-
check_permissions
(request)¶ Check if the request should be permitted. Raises an appropriate exception if the request is not permitted.
-
check_throttles
(request)¶ Check if request should be throttled. Raises an appropriate exception if the request is throttled.
-
content_negotiation_class
¶ alias of
DefaultContentNegotiation
-
default_response_headers
¶
-
delete
(request, *args, **kwargs)¶
-
dispatch
(request, *args, **kwargs)¶ .dispatch() is pretty much the same as Django’s regular dispatch, but with extra hooks for startup, finalize, and exception handling.
-
finalize_response
(request, response, *args, **kwargs)¶ Returns the final response object.
-
get
(request, *args, **kwargs)¶
-
get_authenticate_header
(request)¶ If a request is unauthenticated, determine the WWW-Authenticate header to use for 401 responses, if any.
-
get_authenticators
()¶ Instantiates and returns the list of authenticators that this view can use.
-
get_content_negotiator
()¶ Instantiate and return the content negotiation class to use.
-
get_format_suffix
(**kwargs)¶ Determine if the request includes a ‘.json’ style format suffix
-
get_parser_context
(http_request)¶ Returns a dict that is passed through to Parser.parse(), as the parser_context keyword argument.
-
get_parsers
()¶ Instantiates and returns the list of parsers that this view can use.
-
get_permissions
()¶ Instantiates and returns the list of permissions that this view requires.
-
get_renderer_context
()¶ Returns a dict that is passed through to Renderer.render(), as the renderer_context keyword argument.
-
get_renderers
()¶ Instantiates and returns the list of renderers that this view can use.
-
get_throttles
()¶ Instantiates and returns the list of throttles that this view uses.
-
get_view_description
(html=False)¶ Return some descriptive text for the view, as used in OPTIONS responses and in the browsable API.
-
get_view_name
()¶ Return the view name, as used in OPTIONS responses and in the browsable API.
-
handle_exception
(exc)¶ Handle any exception that occurs, by returning an appropriate response, or re-raising the error.
-
http_method_names
= ['get', 'post', 'put', 'patch', 'delete', 'head', 'options', 'trace']¶
-
http_method_not_allowed
(request, *args, **kwargs)¶ If request.method does not correspond to a handler method, determine what kind of exception to raise.
-
initial
(request, *args, **kwargs)¶ Runs anything that needs to occur prior to calling the method handler.
-
initialize_request
(request, *args, **kwargs)¶ Returns the initial request object.
-
metadata
(request)¶ Return a dictionary of metadata about the view. Used to return responses for OPTIONS requests.
-
options
(request, *args, **kwargs)¶ Handler method for HTTP ‘OPTIONS’ request. We may as well implement this as Django will otherwise provide a less useful default implementation.
-
parser_classes
= [<class 'rest_framework.parsers.JSONParser'>, <class 'rest_framework.parsers.FormParser'>, <class 'rest_framework.parsers.MultiPartParser'>]¶
-
perform_authentication
(request)¶ 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.
-
perform_content_negotiation
(request, force=False)¶ Determine which renderer and media type to use render the response.
-
permission_classes
= (<class 'rest_framework.permissions.IsAuthenticated'>,)¶
-
permission_denied
(request)¶ If request is not permitted, determine what kind of exception to raise.
-
post
(request, *args, **kwargs)¶
-
process
(request, action, *args, **kwargs)¶
-
put
(request, *args, **kwargs)¶
-
renderer_classes
= (<class 'rest_framework.renderers.JSONRenderer'>, <class 'rest_framework_csv.renderers.CSVRenderer'>, <class 'kind.views.__init__.TSVRenderer'>)¶
-
search
(request, *args, **kwargs)¶
-
search_multiple
(request, *args, **kwargs)¶
-
settings
= <rest_framework.settings.APISettings object>¶
-
throttle_classes
= ()¶
-
throttled
(request, wait)¶ If request is throttled, determine what kind of exception to raise.
-
-
class
kind.views.__init__.
SearchView
(*args, **kwargs)[소스]¶ -
allowed_methods
¶ Wrap Django’s private _allowed_methods interface in a public property.
-
as_view
(**initkwargs)¶ 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.
-
authentication_classes
= [<class 'rest_framework.authentication.SessionAuthentication'>, <class 'rest_framework.authentication.BasicAuthentication'>]¶
-
check_between
(request, *args, **kwargs)¶
-
check_object_permissions
(request, obj)¶ Check if the request should be permitted for a given object. Raises an appropriate exception if the request is not permitted.
-
check_permissions
(request)¶ Check if the request should be permitted. Raises an appropriate exception if the request is not permitted.
-
check_throttles
(request)¶ Check if request should be throttled. Raises an appropriate exception if the request is throttled.
-
content_negotiation_class
¶ alias of
DefaultContentNegotiation
-
default_response_headers
¶
-
delete
(request, *args, **kwargs)¶
-
dispatch
(request, *args, **kwargs)¶ .dispatch() is pretty much the same as Django’s regular dispatch, but with extra hooks for startup, finalize, and exception handling.
-
finalize_response
(request, response, *args, **kwargs)¶ Returns the final response object.
-
get
(request, *args, **kwargs)¶
-
get_authenticate_header
(request)¶ If a request is unauthenticated, determine the WWW-Authenticate header to use for 401 responses, if any.
-
get_authenticators
()¶ Instantiates and returns the list of authenticators that this view can use.
-
get_content_negotiator
()¶ Instantiate and return the content negotiation class to use.
-
get_format_suffix
(**kwargs)¶ Determine if the request includes a ‘.json’ style format suffix
-
get_parser_context
(http_request)¶ Returns a dict that is passed through to Parser.parse(), as the parser_context keyword argument.
-
get_parsers
()¶ Instantiates and returns the list of parsers that this view can use.
-
get_permissions
()¶ Instantiates and returns the list of permissions that this view requires.
-
get_renderer_context
()¶ Returns a dict that is passed through to Renderer.render(), as the renderer_context keyword argument.
-
get_renderers
()¶ Instantiates and returns the list of renderers that this view can use.
-
get_throttles
()¶ Instantiates and returns the list of throttles that this view uses.
-
get_view_description
(html=False)¶ Return some descriptive text for the view, as used in OPTIONS responses and in the browsable API.
-
get_view_name
()¶ Return the view name, as used in OPTIONS responses and in the browsable API.
-
handle_exception
(exc)¶ Handle any exception that occurs, by returning an appropriate response, or re-raising the error.
-
http_method_names
= ['get', 'post', 'put', 'patch', 'delete', 'head', 'options', 'trace']¶
-
http_method_not_allowed
(request, *args, **kwargs)¶ If request.method does not correspond to a handler method, determine what kind of exception to raise.
-
initial
(request, *args, **kwargs)¶ Runs anything that needs to occur prior to calling the method handler.
-
initialize_request
(request, *args, **kwargs)¶ Returns the initial request object.
-
metadata
(request)¶ Return a dictionary of metadata about the view. Used to return responses for OPTIONS requests.
-
options
(request, *args, **kwargs)¶ Handler method for HTTP ‘OPTIONS’ request. We may as well implement this as Django will otherwise provide a less useful default implementation.
-
parser_classes
= [<class 'rest_framework.parsers.JSONParser'>, <class 'rest_framework.parsers.FormParser'>, <class 'rest_framework.parsers.MultiPartParser'>]¶
-
perform_authentication
(request)¶ 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.
-
perform_content_negotiation
(request, force=False)¶ Determine which renderer and media type to use render the response.
-
permission_classes
= (<class 'rest_framework.permissions.IsAuthenticated'>,)¶
-
permission_denied
(request)¶ If request is not permitted, determine what kind of exception to raise.
-
post
(request, *args, **kwargs)¶
-
process
(request, action, *args, **kwargs)¶
-
put
(request, *args, **kwargs)¶
-
renderer_classes
= (<class 'rest_framework.renderers.JSONRenderer'>, <class 'rest_framework_csv.renderers.CSVRenderer'>, <class 'kind.views.__init__.TSVRenderer'>)¶
-
search
(request, *args, **kwargs)¶
-
search_multiple
(request, *args, **kwargs)¶
-
settings
= <rest_framework.settings.APISettings object>¶
-
throttle_classes
= ()¶
-
throttled
(request, wait)¶ If request is throttled, determine what kind of exception to raise.
-
-
class
kind.views.__init__.
TSVRenderer
[소스]¶ -
charset
= 'utf-8'¶
-
flatten_data
(data)¶ Convert the given data collection to a list of dictionaries that are each exactly one level deep. The key for each value in the dictionaries designates the name of the column that the value will fall into.
-
flatten_dict
(d)¶
-
flatten_item
(item)¶
-
flatten_list
(l)¶
-
format
= 'tsv'¶
-
headers
= None¶
-
level_sep
= '.'¶
-
media_type
= 'text/tsv'¶
-
nest_flat_item
(flat_item, prefix)¶ Given a “flat item” (a dictionary exactly one level deep), nest all of the column headers in a namespace designated by prefix. For example:
header... | with prefix... | becomes...- ———–|—————-|—————-
- ‘lat’ | ‘location’ | ‘location.lat’ ‘’ | ‘0’ | ‘0’ ‘votes.1’ | ‘user’ | ‘user.votes.1’
-
render_style
= 'text'¶
-
tablize
(data)¶ Convert a list of data into a table.
-
-
class
kind.views.__init__.
TaskView
(*args, **kwargs)[소스]¶ -
allowed_methods
¶ Wrap Django’s private _allowed_methods interface in a public property.
-
as_view
(**initkwargs)¶ 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.
-
authentication_classes
= [<class 'rest_framework.authentication.SessionAuthentication'>, <class 'rest_framework.authentication.BasicAuthentication'>]¶
-
check_object_permissions
(request, obj)¶ Check if the request should be permitted for a given object. Raises an appropriate exception if the request is not permitted.
-
check_permissions
(request)¶ Check if the request should be permitted. Raises an appropriate exception if the request is not permitted.
-
check_throttles
(request)¶ Check if request should be throttled. Raises an appropriate exception if the request is throttled.
-
content_negotiation_class
¶ alias of
DefaultContentNegotiation
-
default_response_headers
¶
-
delete
(request, *args, **kwargs)¶
-
delete_process
(request, *args, **kwargs)¶
-
dispatch
(request, *args, **kwargs)¶ .dispatch() is pretty much the same as Django’s regular dispatch, but with extra hooks for startup, finalize, and exception handling.
-
finalize_response
(request, response, *args, **kwargs)¶ Returns the final response object.
-
get
(request, *args, **kwargs)¶
-
get_authenticate_header
(request)¶ If a request is unauthenticated, determine the WWW-Authenticate header to use for 401 responses, if any.
-
get_authenticators
()¶ Instantiates and returns the list of authenticators that this view can use.
-
get_content_negotiator
()¶ Instantiate and return the content negotiation class to use.
-
get_format_suffix
(**kwargs)¶ Determine if the request includes a ‘.json’ style format suffix
-
get_parser_context
(http_request)¶ Returns a dict that is passed through to Parser.parse(), as the parser_context keyword argument.
-
get_parsers
()¶ Instantiates and returns the list of parsers that this view can use.
-
get_permissions
()¶ Instantiates and returns the list of permissions that this view requires.
-
get_process
(request, *args, **kwargs)¶
-
get_renderer_context
()¶ Returns a dict that is passed through to Renderer.render(), as the renderer_context keyword argument.
-
get_renderers
()¶ Instantiates and returns the list of renderers that this view can use.
-
get_throttles
()¶ Instantiates and returns the list of throttles that this view uses.
-
get_view_description
(html=False)¶ Return some descriptive text for the view, as used in OPTIONS responses and in the browsable API.
-
get_view_name
()¶ Return the view name, as used in OPTIONS responses and in the browsable API.
-
handle_exception
(exc)¶ Handle any exception that occurs, by returning an appropriate response, or re-raising the error.
-
http_method_names
= ['get', 'post', 'put', 'patch', 'delete', 'head', 'options', 'trace']¶
-
http_method_not_allowed
(request, *args, **kwargs)¶ If request.method does not correspond to a handler method, determine what kind of exception to raise.
-
initial
(request, *args, **kwargs)¶ Runs anything that needs to occur prior to calling the method handler.
-
initialize_request
(request, *args, **kwargs)¶ Returns the initial request object.
-
list_process
(request, *args, **kwargs)¶
-
metadata
(request)¶ Return a dictionary of metadata about the view. Used to return responses for OPTIONS requests.
-
options
(request, *args, **kwargs)¶ Handler method for HTTP ‘OPTIONS’ request. We may as well implement this as Django will otherwise provide a less useful default implementation.
-
parser_classes
= [<class 'rest_framework.parsers.JSONParser'>, <class 'rest_framework.parsers.FormParser'>, <class 'rest_framework.parsers.MultiPartParser'>]¶
-
perform_authentication
(request)¶ 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.
-
perform_content_negotiation
(request, force=False)¶ Determine which renderer and media type to use render the response.
-
permission_classes
= (<class 'rest_framework.permissions.IsAuthenticated'>,)¶
-
permission_denied
(request)¶ If request is not permitted, determine what kind of exception to raise.
-
post
(request, *args, **kwargs)¶
-
post_process
(request, *args, **kwargs)¶
-
process
(request, action, *args, **kwargs)¶
-
put
(request, *args, **kwargs)¶
-
put_process
(request, *args, **kwargs)¶
-
renderer_classes
= (<class 'rest_framework.renderers.JSONRenderer'>, <class 'rest_framework_csv.renderers.CSVRenderer'>, <class 'kind.views.__init__.TSVRenderer'>)¶
-
settings
= <rest_framework.settings.APISettings object>¶
-
throttle_classes
= ()¶
-
throttled
(request, wait)¶ If request is throttled, determine what kind of exception to raise.
-
kind.views.html¶
-
class
kind.views.html.
ASTRView
(**kwargs)[소스]¶ -
as_view
(**initkwargs)¶ Main entry point for a request-response process.
-
content_type
= None¶
-
dispatch
(request, *args, **kwargs)¶
-
get
(request, *args, **kwargs)¶
-
get_context_data
(**kwargs)¶
-
get_template_names
()¶ Returns a list of template names to be used for the request. Must return a list. May not be called if render_to_response is overridden.
-
http_method_names
= ['get', 'post', 'put', 'patch', 'delete', 'head', 'options', 'trace']¶
-
http_method_not_allowed
(request, *args, **kwargs)¶
-
options
(request, *args, **kwargs)¶ Handles responding to requests for the OPTIONS HTTP verb.
-
render_to_response
(context, **response_kwargs)¶ Returns a response, using the response_class for this view, with a template rendered with the given context.
If any keyword arguments are provided, they will be passed to the constructor of the response class.
-
response_class
¶ alias of
TemplateResponse
-
template_name
= 'rest_framework/html/api.html'¶
-
-
class
kind.views.html.
AngularjsView
(**kwargs)[소스]¶ -
as_view
(**initkwargs)¶ Main entry point for a request-response process.
-
content_type
= None¶
-
dispatch
(request, *args, **kwargs)¶
-
get
(request, *args, **kwargs)¶
-
get_context_data
(**kwargs)¶
-
get_template_names
()¶ Returns a list of template names to be used for the request. Must return a list. May not be called if render_to_response is overridden.
-
http_method_names
= ['get', 'post', 'put', 'patch', 'delete', 'head', 'options', 'trace']¶
-
http_method_not_allowed
(request, *args, **kwargs)¶
-
options
(request, *args, **kwargs)¶ Handles responding to requests for the OPTIONS HTTP verb.
-
render_to_response
(context, **response_kwargs)¶ Returns a response, using the response_class for this view, with a template rendered with the given context.
If any keyword arguments are provided, they will be passed to the constructor of the response class.
-
response_class
¶ alias of
TemplateResponse
-
template_name
= 'rest_framework/html/angularjs.html'¶
-