MCPcopy Index your code
hub / github.com/fastapi/fastapi / new_subscription

Function new_subscription

tests/test_webhooks_security.py:22–28  ·  view source on GitHub ↗

When a new user subscribes to your service we'll send you a POST request with this data to the URL that you register for the event `new-subscription` in the dashboard.

(
    body: Subscription, token: Annotated[str, Security(bearer_scheme)]
)

Source from the content-addressed store, hash-verified

20
21@app.webhooks.post("new-subscription")
22def new_subscription(
23 body: Subscription, token: Annotated[str, Security(bearer_scheme)]
24):
25 """
26 When a new user subscribes to your service we'll send you a POST request with this
27 data to the URL that you register for the event `new-subscription` in the dashboard.
28 """
29
30
31client = TestClient(app)

Callers 1

test_dummy_webhookFunction · 0.70

Calls 1

SecurityClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…