apiview.py 568 B

1234567891011121314151617
  1. from .serializer import *
  2. from rest_framework import viewsets, permissions, exceptions
  3. from rest_framework.authentication import TokenAuthentication
  4. from rest_framework.decorators import action
  5. from metaservicesynced.models import *
  6. from rest_framework.views import APIView
  7. from rest_framework.response import Response
  8. class DocumentsMVS(viewsets.ModelViewSet):
  9. """
  10. """
  11. queryset = Documents.objects.all()
  12. serializer_class = DocumentsSerializer
  13. #permission_classes = [IsOwnerOrReadOnly]
  14. permission_classes = [permissions.IsAuthenticated]