from django.shortcuts import render
from rest_framework import viewsets
from .models import User, Post, Comment
from .serializers import UserSerializer, PostSerializer, CommentSerializer


class UserView(viewsets.ModelViewSet):
    authentication_classes = []
    queryset = User.objects.all()
    serializer_class = UserSerializer


class PostView(viewsets.ModelViewSet):
    authentication_classes = []
    queryset = Post.objects.all()
    serializer_class = PostSerializer


class CommentView(viewsets.ModelViewSet):
    authentication_classes = []
    queryset = Comment.objects.all()
    serializer_class = CommentSerializer

b6aaf9eabe8f2eb5bf4fc10294c3f65748088480
<mask token>


class CommentView(viewsets.ModelViewSet):
    authentication_classes = []
    queryset = Comment.objects.all()
    serializer_class = CommentSerializer

<mask token>


class PostView(viewsets.ModelViewSet):
    <mask token>
    <mask token>
    <mask token>


class CommentView(viewsets.ModelViewSet):
    authentication_classes = []
    queryset = Comment.objects.all()
    serializer_class = CommentSerializer

<mask token>


class UserView(viewsets.ModelViewSet):
    <mask token>
    <mask token>
    <mask token>


class PostView(viewsets.ModelViewSet):
    authentication_classes = []
    queryset = Post.objects.all()
    serializer_class = PostSerializer


class CommentView(viewsets.ModelViewSet):
    authentication_classes = []
    queryset = Comment.objects.all()
    serializer_class = CommentSerializer

<mask token>


class UserView(viewsets.ModelViewSet):
    authentication_classes = []
    queryset = User.objects.all()
    serializer_class = UserSerializer


class PostView(viewsets.ModelViewSet):
    authentication_classes = []
    queryset = Post.objects.all()
    serializer_class = PostSerializer


class CommentView(viewsets.ModelViewSet):
    authentication_classes = []
    queryset = Comment.objects.all()
    serializer_class = CommentSerializer

from django.shortcuts import render
from rest_framework import viewsets
from .models import User, Post, Comment
from .serializers import UserSerializer, PostSerializer, CommentSerializer


class UserView(viewsets.ModelViewSet):
    authentication_classes = []
    queryset = User.objects.all()
    serializer_class = UserSerializer


class PostView(viewsets.ModelViewSet):
    authentication_classes = []
    queryset = Post.objects.all()
    serializer_class = PostSerializer


class CommentView(viewsets.ModelViewSet):
    authentication_classes = []
    queryset = Comment.objects.all()
    serializer_class = CommentSerializer
