old_contents: from django.contrib.auth.models import User, Group
  from waterfall_wall.models import Image
  from rest_framework import serializers
  
  
  class ImageSerializer(serializers.HyperlinkedModelSerializer):
      url = serializers.SerializerMethodField()
  
      def get_url(self, obj):
          return obj.path.url
  
      class Meta:
          model = Image
          fields = ('url', 'nude_percent')
  
new_contents: from django.contrib.auth.models import User, Group
  from waterfall_wall.models import Image
  from rest_framework import serializers
  
  
  class ImageSerializer(serializers.HyperlinkedModelSerializer):
      url = serializers.SerializerMethodField()
  
      def get_url(self, obj):
          return obj.path.url
  
      class Meta:
          model = Image
          fields = ('id', 'url', 'nude_percent')
  
subject: Add id in image API response