Rest API - Webhooks and Events
Identify the bug in this webhook registration endpoint code snippet:def register_webhook(request):
callback = request.json['callback_url']
if callback is None:
return {'error': 'Missing callback_url'}, 400
return {'message': 'Webhook registered'}, 201
