from rest_framework import serializers


class HelloSerializer(serializers.Serializer):
    """ To serialize the name field for testing our APiView"""
    name    =   serializers.CharField(max_length=10)

from rest_framework import serializers


class HelloSerializer(serializers.Serializer):
    """ To serialize the name field for testing our APiView"""
    name    =   serializers.CharField(max_length=10)

To serialize the name field for testing our APiView