Services | Product Service | AsyncApi Spec
Manages the catalog of products for the BookWorm platform, including books, authors, and categories
Servers
- amqp://dev.eventbus:5672/amqp 0.9.1development
RabbitMQ server for development environment
Security:
- User/Password
An authentication method for the server
- #env:development
- amqp://stg.eventbus:5672/amqp 0.9.1staging
RabbitMQ server for staging environment
Security:
- User/Password
An authentication method for the server
- #env:staging
- amqp://qa.eventbus:5672/amqp 0.9.1qa
RabbitMQ server for QA environment
Security:
- User/Password
An authentication method for the server
- #env:qa
- amqp://prod.eventbus:5672/amqp 0.9.1production
RabbitMQ server for production environment
Security:
- User/Password
An authentication method for the server
- #env:production
Operations
RECEIVE catalog-feedback-created
Event emitted when a new feedback is successfully created
Update book rating
Represents a successful integration event when creating a feedback in the system
Operation IDFeedbackCreatedIntegrationEventAvailable only on servers:
Accepts the following message:
Message IDFeedbackCreatedIntegrationEvent.messageallOfEvent consumed when a feedback is successfully created, containing details about the feedback
Examples
{ "id": "01961eb4-668d-7e7e-ae25-0fab379614f7", "creationDate": "2021-01-01T00:00:00Z", "bookId": "01961eb4-668d-7e7e-ae25-0fab379614f7", "rating": 4, "feedbackId": "01961eb4-668d-7e7e-ae25-0fab379614f7" }
This example has been generated automatically.
SEND rating-book-updated-rating-failed
Event emitted when updating a book's rating fails
Operation IDBookUpdatedRatingFailedIntegrationEventAvailable only on servers:
Accepts the following message:
Message IDBookUpdatedRatingFailedIntegrationEvent.messageallOfEvent published when updating a book's rating fails, containing details about the failed transaction
Examples
{ "id": "01961eb4-668d-7e7e-ae25-0fab379614f7", "creationDate": "2021-01-01T00:00:00Z", "feedbackId": "01961eb4-668d-7e7e-ae25-0fab379614f7" }
This example has been generated automatically.
RECEIVE catalog-feedback-deleted
Event emitted when a feedback is successfully deleted
Update book rating
Operation IDFeedbackDeletedIntegrationEventAvailable only on servers:
Accepts the following message:
Message IDFeedbackDeletedIntegrationEvent.messageallOfEvent published when a feedback is successfully deleted, containing details about the deleted feedback
Examples
{ "id": "01961eb4-668d-7e7e-ae25-0fab379614f7", "creationDate": "2021-01-01T00:00:00Z", "bookId": "01961eb4-668d-7e7e-ae25-0fab379614f7", "rating": 4, "feedbackId": "01961eb4-668d-7e7e-ae25-0fab379614f7" }
This example has been generated automatically.
Messages
- #1Message IDfeedbackCreatedIntegrationEventallOf
Event consumed when a feedback is successfully created, containing details about the feedback
- #2Message IDbookUpdatedRatingFailedIntegrationEventallOf
Event published when updating a book's rating fails, containing details about the failed transaction
- #3Message IDfeedbackDeletedIntegrationEventallOf
Event published when a feedback is successfully deleted, containing details about the deleted feedback
Schemas
- allOf
Event consumed when a feedback is successfully created, containing details about the feedback
- object
Base event structure containing common metadata for all integration events in the system
- allOf
Event published when updating a book's rating fails, containing details about the failed transaction
- allOf
Event published when a feedback is successfully deleted, containing details about the deleted feedback