ferrosoft.apps.ticketing.api package

Submodules

ferrosoft.apps.ticketing.api.router module

ferrosoft.apps.ticketing.api.serializer module

class ferrosoft.apps.ticketing.api.serializer.TaigaWebhookSerializer(*args, **kwargs)[source]

Bases: Serializer

create(validated_data)[source]
validate(data)[source]

Validates the overall payload and ensures all required data exists.

validate_change(value)[source]

Validates the ‘change’ field for duplicate or internal comments.

ferrosoft.apps.ticketing.api.service module

class ferrosoft.apps.ticketing.api.service.CommentService[source]

Bases: object

classmethod is_duplicate(comment)[source]
Return type:

bool

classmethod is_internal(comment)[source]
Return type:

bool

class ferrosoft.apps.ticketing.api.service.WebhookSignatureValidator(secret_key)[source]

Bases: object

classmethod from_django_settings()[source]
is_valid(signature, body)[source]
Return type:

bool

ferrosoft.apps.ticketing.api.service.generate_comment_hash(content)[source]
Return type:

str

ferrosoft.apps.ticketing.api.views module

class ferrosoft.apps.ticketing.api.views.TaigaWebhookViewSet(**kwargs)[source]

Bases: ViewSet

basename = None
create(request, *args, **kwargs)[source]
description = None
detail = None
name = None
permission_classes = [<class 'rest_framework.permissions.AllowAny'>]
suffix = None