QuestionQ98

VerifiedController-Based Network Automation

Question Image

Refer to the exhibit. Which code snippet should be added in the box to complete the webhook receiver function?

Explanation

In Flask, @app.route('/webhook', methods=['POST']) decorates a view function that handles POST requests for that URL. The authentication decorator is applied to that same function, so def webhook(): must follow the decorators. The POST method matches both the route configuration and the subsequent request.method == 'POST' processing.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!