def home(request): new_claims = Service.getAllClaim() featured_claim = new_claims[0] hot_claims = Service.getAllClaim() help_titles = Service.getHelpTitleAsDict('home') help_descriptions = Service.getHelpDescriptionAsDict('home') return render(request, 'market/home.html', locals())
def claims(request): claims = Service.getAllClaim() return render(request, 'market/claims.html', locals())
def get(self, request, format=None): claims = Service.getAllClaim() serializer = ClaimSerializer(claims, many=True) return Response(serializer.data)