from django.views.decorators.csrf import csrf_exempt from django.http import HttpResponse from .ingestion import Ingestion # if this gets more complex then we can replace it with the REST framework # http://www.django-rest-framework.org/ @csrf_exempt def add_build(request): # TODO: add validations and return 400s when the request is bad Ingestion().run(request.body) return HttpResponse('')