Skip to content

Instantly share code, notes, and snippets.

@jankronquist
Created September 8, 2013 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jankronquist/6486027 to your computer and use it in GitHub Desktop.
Save jankronquist/6486027 to your computer and use it in GitHub Desktop.
EventStore JSON example
{
"title": "0@game-123",
"id": "http://192.168.0.16:2113/streams/game-123/0",
"updated": "2013-09-08T16:07:53.5242492Z",
"author": {
"name": "EventStore"
},
"summary": "com_jayway_rps_domain_GameCreatedEvent",
"content": {
"eventStreamId": "game-123",
"eventNumber": 0,
"eventType": "com_jayway_rps_domain_GameCreatedEvent",
"data": {
"game-id": "game-123",
"creator": "player-1"
},
"metadata": ""
},
"links": [
{
"uri": "http://192.168.0.16:2113/streams/game-123/0",
"relation": "edit"
},
{
"uri": "http://192.168.0.16:2113/streams/game-123/0",
"relation": "alternate"
}
]
}
{
"title": "Event stream 'game-123'",
"id": "http://192.168.0.16:2113/streams/game-123",
"updated": "2013-09-08T16:07:53.7802638Z",
"streamId": "game-123",
"author": {
"name": "EventStore"
},
"links": [
{
"uri": "http://192.168.0.16:2113/streams/game-123",
"relation": "self"
},
{
"uri": "http://192.168.0.16:2113/streams/game-123/head/backward/20",
"relation": "first"
},
{
"uri": "http://192.168.0.16:2113/streams/game-123/4/forward/20",
"relation": "previous"
},
{
"uri": "http://192.168.0.16:2113/streams/game-123/metadata",
"relation": "metadata"
}
],
"entries": [
{
"title": "3@game-123",
"id": "http://192.168.0.16:2113/streams/game-123/3",
"updated": "2013-09-08T16:07:53.7802638Z",
"author": {
"name": "EventStore"
},
"summary": "com_jayway_rps_domain_GameWonEvent",
"links": [
{
"uri": "http://192.168.0.16:2113/streams/game-123/3",
"relation": "edit"
},
{
"uri": "http://192.168.0.16:2113/streams/game-123/3",
"relation": "alternate"
}
]
},
{
"title": "2@game-123",
"id": "http://192.168.0.16:2113/streams/game-123/2",
"updated": "2013-09-08T16:07:53.7792637Z",
"author": {
"name": "EventStore"
},
"summary": "com_jayway_rps_domain_MoveDecidedEvent",
"links": [
{
"uri": "http://192.168.0.16:2113/streams/game-123/2",
"relation": "edit"
},
{
"uri": "http://192.168.0.16:2113/streams/game-123/2",
"relation": "alternate"
}
]
},
{
"title": "1@game-123",
"id": "http://192.168.0.16:2113/streams/game-123/1",
"updated": "2013-09-08T16:07:53.5242492Z",
"author": {
"name": "EventStore"
},
"summary": "com_jayway_rps_domain_MoveDecidedEvent",
"links": [
{
"uri": "http://192.168.0.16:2113/streams/game-123/1",
"relation": "edit"
},
{
"uri": "http://192.168.0.16:2113/streams/game-123/1",
"relation": "alternate"
}
]
},
{
"title": "0@game-123",
"id": "http://192.168.0.16:2113/streams/game-123/0",
"updated": "2013-09-08T16:07:53.5242492Z",
"author": {
"name": "EventStore"
},
"summary": "com_jayway_rps_domain_GameCreatedEvent",
"links": [
{
"uri": "http://192.168.0.16:2113/streams/game-123/0",
"relation": "edit"
},
{
"uri": "http://192.168.0.16:2113/streams/game-123/0",
"relation": "alternate"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment