Hi Everyone,

I am creating a django-rest-api , when i am running api for testing in 
browser , not geting any

getting output in this form-

HTTP 200 OKAllow: GET, HEAD, OPTIONSContent-Type: application/jsonVary: Accept
[
    {},
    {}]

*i have entered data in database using django admin .*

*please help me i am new to django restframework*

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
from django.shortcuts import render,get_object_or_404
from rest_framework.views import APIView
from rest_framework.response import Response
from .models import Bus_detail,Car_detail,Travel_detail,Transporter,Bus_Route,Stations
from .serializers import Bus_detailSerializer

class Bus_detailList(APIView):

	def get(self, request, format=None):
		bus = Bus_detail.objects.all()
		serializer = Bus_detailSerializer(bus, many=True)
		return Response(serializer.data)

Reply via email to