mirror of
https://github.com/spbleadersofdigtal/backend.git
synced 2024-11-26 12:53:44 +03:00
16 lines
534 B
Python
16 lines
534 B
Python
|
from rest_framework import generics
|
||
|
from rest_framework.permissions import AllowAny
|
||
|
from rest_framework.response import Response
|
||
|
|
||
|
from pitch_deck_generator.tickets.api.serializers import TicketSerializer
|
||
|
from pitch_deck_generator.tickets.services import get_ticket_data
|
||
|
|
||
|
|
||
|
class RetrieveTicketSerializer(generics.RetrieveAPIView):
|
||
|
serializer_class = TicketSerializer
|
||
|
permission_classes = [AllowAny]
|
||
|
|
||
|
def get(self, request, *args, **kwargs):
|
||
|
data = get_ticket_data(self.kwargs["uuid"])
|
||
|
return Response(data)
|