from rest_framework import serializers
from .models import Hero


class HeroSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Hero
        fields = ('id', 'url', 'name', 'identity', 'universe', 'gender')
