thorn.django.rest_framework.views

DRF Views.

API endpoints for users to create and manage their webhook subscriptions.

class thorn.django.rest_framework.views.SubscriberList(**kwargs)[source]

List and create new subscriptions for the currently logged in user.

get_queryset()[source]
model

alias of Subscriber

perform_create(serializer)[source]
permission_classes
serializer_class

alias of SubscriberSerializer

class thorn.django.rest_framework.views.SubscriberDetail(**kwargs)[source]

Update, delete or get details for specific subscription.

Note

User must be logged in, and user can only see subscriptions owned by them.

get_object()[source]
lookup_field = u'uuid'
model

alias of Subscriber

permission_classes
serializer_class

alias of SubscriberSerializer