62 lines
1.7 KiB
JSON
62 lines
1.7 KiB
JSON
{
|
|
"_comment": "Example events for testing the API event emitter plugin",
|
|
"user_created": {
|
|
"_comment": "Event emitted when a new user is created",
|
|
"event_type": "user.created",
|
|
"data": {
|
|
"user_id": "user123",
|
|
"username": "johndoe",
|
|
"email": "john.doe@example.com",
|
|
"created_at": "2024-10-27T10:00:00Z"
|
|
}
|
|
},
|
|
"product_added": {
|
|
"_comment": "Event emitted when a new product is added to the catalog",
|
|
"event_type": "product.added",
|
|
"data": {
|
|
"product_id": "prod456",
|
|
"product_name": "Awesome Widget",
|
|
"description": "A fantastic widget for all your needs",
|
|
"price": 19.99,
|
|
"created_at": "2024-10-27T10:05:00Z"
|
|
}
|
|
},
|
|
"order_placed": {
|
|
"_comment": "Event emitted when a user places an order",
|
|
"event_type": "order.placed",
|
|
"data": {
|
|
"order_id": "order789",
|
|
"user_id": "user123",
|
|
"order_date": "2024-10-27T10:10:00Z",
|
|
"total_amount": 39.98,
|
|
"items": [
|
|
{
|
|
"product_id": "prod456",
|
|
"quantity": 2
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"payment_processed": {
|
|
"_comment": "Event emitted when a payment is successfully processed",
|
|
"event_type": "payment.processed",
|
|
"data": {
|
|
"payment_id": "payment012",
|
|
"order_id": "order789",
|
|
"amount": 39.98,
|
|
"payment_date": "2024-10-27T10:15:00Z",
|
|
"payment_method": "credit_card",
|
|
"status": "success"
|
|
}
|
|
},
|
|
"user_updated": {
|
|
"_comment": "Event emitted when a user's profile is updated",
|
|
"event_type": "user.updated",
|
|
"data": {
|
|
"user_id": "user123",
|
|
"username": "john.doe.updated",
|
|
"email": "john.doe.updated@example.com",
|
|
"updated_at": "2024-10-27T10:20:00Z"
|
|
}
|
|
}
|
|
} |