Responsible objects and Json The mutual transformation of formats
# Create a new serialization file
from rest_framework import serializers
from .models import Library name
# Corresponding database serialization
class Library name Serializer(serializers.ModelSerializer):
class Meta:
model= Library name
fields="__all__"