Django Restful API returns Empty Json
<p>I'm building a django restful json API using rest_framework libraries, however it returns empty json  [ ] when I submit a request to it, even though there's plenty of records in the DB table. Here' my Code</p>

<p><strong>models.py</strong></p>

<pre><code>class Member(models.Model):
    email = models.EmailField()
    mobile = models.CharField(max_length=11, null=False)
    username = models.CharField(max_length=20, null= False, help_text="Username")
    password = models.CharField(max_length=15, null=False, help_text="Password")
    mobile_id = models.CharField(max_length=100, null=True, blank=True)
    joined_date = models.DateTimeField(auto_now_add=True)
</code></pre>

<p><strong>serializers.py</strong></p>

<pre><code>class MemberSerializer(serializers.Serializer):
    class Meta:
        model = Member
        fields = ('email', 'mobile', 'username', 'joined_date')
</code></pre>

<p><strong>views.py</strong></p>

<pre><code>class MemberAPI(viewsets.ModelViewSet):
    serializer_class = MemberSerializer
    queryset = Member.objects.all()
</code></pre>

<p><strong>urls.py</strong></p>

<pre><code>router = DefaultRouter()
router.register(r'member', MemberAPI, base_name='member')
urlpatterns = router.urls
</code></pre>