feat(core): Add Ticket Comment API v2 endpoint

ref: #248 #365
This commit is contained in:
2024-10-27 14:34:58 +09:30
parent a4bfb3a7e8
commit 4542301446
7 changed files with 616 additions and 1 deletions

View File

@ -73,6 +73,7 @@ class TicketModelSerializer(TicketBaseSerializer):
'pk': item.pk
}
),
'comments': reverse('v2:_api_v2_ticket_' + str(item.get_ticket_type_display()).lower() + '_comments-list', request=context['view'].request, kwargs={'ticket_id': item.pk}),
}