right-tree/backend/right_tree/api/views.py

11 lines
325 B
Python
Raw Normal View History

from rest_framework import viewsets
from right_tree.api.models import Plant
from right_tree.api.serializers import PlantSerializer
class PlantViewSet(viewsets.ModelViewSet):
"""
API endpoint that allows hours to be grouped or edited.
"""
queryset = Plant.objects.all()
serializer_class = PlantSerializer