Event Store
Stream operations and event management
Event Store API
Section titled “Event Store API”Stream operations and event management
POST /api/event-stores/{eventStoreName}/streams/{streamId}/events
Section titled “POST /api/event-stores/{eventStoreName}/streams/{streamId}/events”Append events to stream
Appends one or more events to a specific stream
POST /api/event-stores/\{eventStoreName\}/streams/\{streamId\}/eventsAuthorization: Bearer YOUR_JWT_TOKENContent-Type: application/json
Parameters
Section titled “Parameters”- eventStoreName (
path
) - Name of the event store - streamId (
path
) - ID of the stream
Request Body
Section titled “Request Body”{ "example": "request body structure here"}
Responses
Section titled “Responses”- 201 - Events appended successfully
- 400 - Bad request - Invalid events
- 409 - Conflict - Stream version mismatch
GET /api/event-stores/{eventStoreName}/streams/{streamId}/events
Section titled “GET /api/event-stores/{eventStoreName}/streams/{streamId}/events”Read events from stream
Retrieves events from a specific stream
GET /api/event-stores/\{eventStoreName\}/streams/\{streamId\}/eventsAuthorization: Bearer YOUR_JWT_TOKENContent-Type: application/json
Parameters
Section titled “Parameters”- eventStoreName (
path
) - No description - streamId (
path
) - No description - from (
query
) - Start position (inclusive) - to (
query
) - End position (exclusive) - maxCount (
query
) - Maximum number of events to return
Responses
Section titled “Responses”- 200 - Events retrieved successfully
- 404 - Stream not found