Last active
April 13, 2016 19:07
-
-
Save sbellware/73ff91051c7cf5e8a216f7b411ac5fd6 to your computer and use it in GitHub Desktop.
EventStore Slice Examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Event stream '$ce-sendFunds'", | |
"id": "http://127.0.0.1:2113/streams/%24ce-sendFunds", | |
"updated": "2016-04-13T23:27:54.854508Z", | |
"streamId": "$ce-sendFunds", | |
"author": { | |
"name": "EventStore" | |
}, | |
"headOfStream": true, | |
"selfUrl": "http://127.0.0.1:2113/streams/%24ce-sendFunds", | |
"eTag": "0;248368668", | |
"links": [ | |
{ | |
"uri": "http://127.0.0.1:2113/streams/%24ce-sendFunds", | |
"relation": "self" | |
}, | |
{ | |
"uri": "http://127.0.0.1:2113/streams/%24ce-sendFunds/head/backward/20", | |
"relation": "first" | |
}, | |
{ | |
"uri": "http://127.0.0.1:2113/streams/%24ce-sendFunds/1/forward/20", | |
"relation": "previous" | |
}, | |
{ | |
"uri": "http://127.0.0.1:2113/streams/%24ce-sendFunds/metadata", | |
"relation": "metadata" | |
} | |
], | |
"entries": [ | |
{ | |
"eventId": "fbf4b1a1-b4a3-4dfe-a01f-ec52c34e16e4", | |
"eventType": "SomeEvent", | |
"eventNumber": 0, | |
"data": "{\n \"someAttribute\": \"value\"\n}", | |
"metaData": "{\n \"sourceStream\": \"some source stream\",\n \"sourceId\": \"some source id\",\n \"etc\": \"other value\"\n}", | |
"linkMetaData": "{\"$v\":\"3:-1:1:3\",\"$c\":56213,\"$p\":56213,\"$o\":\"sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D\",\"$causedBy\":\"fbf4b1a1-b4a3-4dfe-a01f-ec52c34e16e4\"}", | |
"streamId": "sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D", | |
"isJson": true, | |
"isMetaData": true, | |
"isLinkMetaData": true, | |
"positionEventNumber": 0, | |
"positionStreamId": "$ce-sendFunds", | |
"title": "0@sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D", | |
"id": "http://127.0.0.1:2113/streams/sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D/0", | |
"updated": "2016-04-13T23:27:54.86641Z", | |
"author": { | |
"name": "EventStore" | |
}, | |
"summary": "$>", | |
"links": [ | |
{ | |
"uri": "http://127.0.0.1:2113/streams/sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D/0", | |
"relation": "edit" | |
}, | |
{ | |
"uri": "http://127.0.0.1:2113/streams/sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D/0", | |
"relation": "alternate" | |
} | |
] | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Event stream 'sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D'", | |
"id": "http://127.0.0.1:2113/streams/sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D", | |
"updated": "2016-04-13T23:27:54.854508Z", | |
"streamId": "sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D", | |
"author": { | |
"name": "EventStore" | |
}, | |
"headOfStream": true, | |
"selfUrl": "http://127.0.0.1:2113/streams/sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D", | |
"eTag": "0;248368668", | |
"links": [ | |
{ | |
"uri": "http://127.0.0.1:2113/streams/sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D", | |
"relation": "self" | |
}, | |
{ | |
"uri": "http://127.0.0.1:2113/streams/sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D/head/backward/20", | |
"relation": "first" | |
}, | |
{ | |
"uri": "http://127.0.0.1:2113/streams/sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D/1/forward/20", | |
"relation": "previous" | |
}, | |
{ | |
"uri": "http://127.0.0.1:2113/streams/sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D/metadata", | |
"relation": "metadata" | |
} | |
], | |
"entries": [ | |
{ | |
"eventId": "fbf4b1a1-b4a3-4dfe-a01f-ec52c34e16e4", | |
"eventType": "SomeEvent", | |
"eventNumber": 0, | |
"data": "{\n \"someAttribute\": \"value\"\n}", | |
"metaData": "{\n \"sourceStream\": \"some source stream\",\n \"sourceId\": \"some source id\",\n \"etc\": \"other value\"\n}", | |
"streamId": "sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D", | |
"isJson": true, | |
"isMetaData": true, | |
"isLinkMetaData": false, | |
"positionEventNumber": 0, | |
"positionStreamId": "sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D", | |
"title": "0@sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D", | |
"id": "http://127.0.0.1:2113/streams/sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D/0", | |
"updated": "2016-04-13T23:27:54.854508Z", | |
"author": { | |
"name": "EventStore" | |
}, | |
"summary": "SomeEvent", | |
"links": [ | |
{ | |
"uri": "http://127.0.0.1:2113/streams/sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D/0", | |
"relation": "edit" | |
}, | |
{ | |
"uri": "http://127.0.0.1:2113/streams/sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D/0", | |
"relation": "alternate" | |
} | |
] | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -i http://127.0.0.1:2113/streams/\$ce-sendFunds?embed=body -H "Accept:application/vnd.eventstore.atom+json" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -i http://127.0.0.1:2113/streams/sendFunds-4D17C89D-E50A-4574-8B0B-508E87E71B4D?embed=body -H "Accept:application/vnd.eventstore.atom+json" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment