Add webhook utilities and FastAPI integration for eBay notifications; enhance tests for request handling
This commit is contained in:
parent
10008a0edc
commit
30b62dedab
5 changed files with 293 additions and 2 deletions
11
README.md
11
README.md
|
|
@ -24,3 +24,14 @@ To generate only one API package:
|
|||
```
|
||||
|
||||
This regenerates Pydantic v2 models into `ebay_client/generated/<api>/models.py`.
|
||||
|
||||
## Webhook Helpers
|
||||
|
||||
The Notification package also includes framework-agnostic webhook utilities for:
|
||||
|
||||
- responding to eBay challenge requests
|
||||
- parsing and validating the `X-EBAY-SIGNATURE` header
|
||||
- verifying signed notification payloads against the cached public key
|
||||
- turning a verified notification body into a normalized `WebhookEventEnvelope`
|
||||
|
||||
A concrete FastAPI integration example is available in `examples/fastapi_notification_webhook.py`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue