resources
curl -X POST http://localhost:9000 -d '{"foo": "bar"}'
views.py
import json
from django.http import HttpResponse
from django.views.generic import View
from braces.views import CsrfExemptMixin
class ProcessHookView(CsrfExemptMixin, View):
def post(self, request, args, *kwargs):
print(json.loads(request.body))
return HttpResponse()