fonzie.views package

Submodules

fonzie.views.acl module

fonzie.views.status module

API status views

class fonzie.views.status.VersionView(**kwargs)

Bases: rest_framework.views.APIView

API endpoint to get the running API version

get(request, version, format=None)

Retrieve API version as a SemVer string

fonzie.views.user module

API user views

class fonzie.views.user.UserSessionView(**kwargs)

Bases: rest_framework.views.APIView

API endpoint to get the authenticated user information.

get(request, version, format=None)

Retrieve logged in user, then generate a JWT with a claim containing its username (unique identifier) and its email. The token’s expiration can be changed through the setting ACCESS_TOKEN_LIFETIME (default 5 minutes).

permission_classes = [<class 'rest_framework.permissions.IsAuthenticated'>]

Module contents