- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for new_subscription (0.06 seconds)
-
docs_src/openapi_webhooks/tutorial001_py310.py
from pydantic import BaseModel app = FastAPI() class Subscription(BaseModel): username: str monthly_fee: float start_date: datetime @app.webhooks.post("new-subscription") def new_subscription(body: Subscription): """ 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. """
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 550 bytes - Click Count (0)