Django retrieveupdatedestroyapiview code example
Example: Django retrieveupdatedestroyapiview
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