Event sourcing API - AlexandreYembo/hydra-eventsourcing GitHub Wiki
There is an Api endpoint available to be consume as part of the query. This helps you to recover the information by providing the Aggregate Id and you will have all information needed.
This is an example of a response object from Event sourcing API:
[
{
"id": "b0fad34c-82e1-4745-b85b-bc4af687c31f",
"type": "CustomerSavedEvent",
"eventDate": "2021-05-26T02:15:53.871269+01:00",
"data": "{\"Name\":\"AHAHAHAHAAHAHAHAHAHA\",\"Email\":\"[email protected]\",\"IdentityNumber\":\"X2132321\",\"Timestamp\":\"2021-05-26T02:15:53.871269+01:00\",\"MessageType\":\"CustomerSavedEvent\",\"AggregateId\":\"901dee7a-105b-492c-b5ed-eecca3a24807\"}"
},
{
"id": "0cf60d85-afb6-4730-a228-e04b4704a2a2",
"type": "CustomerCreatedEvent",
"eventDate": "2021-05-26T02:15:58.740478+01:00",
"data": "{\"Name\":\"AHAHAHAHAAHAHAHAHAHA\",\"Email\":\"[email protected]\",\"Timestamp\":\"2021-05-26T02:15:58.740478+01:00\",\"MessageType\":\"CustomerCreatedEvent\",\"AggregateId\":\"901dee7a-105b-492c-b5ed-eecca3a24807\"}"
}
]