class UserViewSet(mixins.CreateModelMixin, mixins.RetrieveModelMixin,
    mixins.ListModelMixin, GenericViewSet):
    queryset = User.objects.all()
serializer_class = UserSerializer

def create(self, request):
    serializer = UserSerializer(data=request.DATA)
Фреймворк для отдыха django — с использованием detail_route и detail_list