📜  Django retrieveupdatedestroyapiview - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:01.879000             🧑  作者: Mango

代码示例1
from django.shortcuts import render
from rest_framework import generics

from .serializers import ApiSerializer #Serializers 

class APIDetailView(generics.RetrieveUpdateDestroyAPIView):
    queryset = Api.objects.all()
    serializer_class = ApiSerializer