79136246

Date: 2024-10-29 07:54:42
Score: 1
Natty:
Report link

Yes, I cannot believe why is it complicated with DRF. Just use the django view.

from django.http import JsonResponse
from django.views import View


class PayloadSignatureVerifier(View):
    @staticmethod
    def post(request):
        # This here is raw binary content
        print(request.body)

        return JsonResponse({'message': 'Successful.'})
Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sudantha Athauda