micro_service_placeholder/microService/api/User/view.py

7 lines
246 B
Python
Raw Permalink Normal View History

2024-11-30 05:34:13 +00:00
from django.contrib.auth.models import User
from api.User.serializers import UserSerializer
from rest_framework.viewsets import ModelViewSet
class UserViewset(ModelViewSet):
queryset = User.objects.all()
serializer_class = UserSerializer