views#
LoginView#
LogoutView#
Bases: APIView
Source code in src/apps/users/views.py
AuthenticatedUserView#
Bases: APIView
Source code in src/apps/users/views.py
get(request)
#
Return user session information.
Source code in src/apps/users/views.py
TokenListRenderer#
APITokenListView#
Bases: LoginView
View for managing API tokens.
Allows following methods:
* GET will return list of tokens for logged in user.
* POST with an empty body will create a new token (inherited from KnoxLoginView).
* DELETE with ?prefix=x
parameter will delete corresponding token from the user.
Provides a UI for creating and deleting API tokens. JSON style responses are also supported.
Source code in src/apps/users/views.py
UserViewSet#
Bases: AccessViewSetMixin
, CommonReadOnlyModelViewSet
API for listing and deleting users. Not for production use.
Source code in src/apps/users/views.py
destroy(request, *args, **kwargs)
#
Delete user and related data. Not for production use.