Django rest récupérer la vue de l'API avec limace

from rest_framework import generics

class FooAPI(generics.RetrieveAPIView):
    queryset = Foo.objects.all()
    serializer_class = FooSerializer
    permission_classes = (AllowAny,)
    lookup_field = 'slug'
Yucky Yak