~ cat data.json
[
{
"eventId": "13acffdd-73dc-1014-b57c-dfdd7340af8a",
"eventType": "event-type",
"data": {
"a": "1"
}
}
]
~ curl -i -d @data.json "http://localhost:2113/streams/newstream"
-H "Content-Type:application/vnd.eventstore.events+json"
HTTP/1.1 201 Created
Access-Control-Allow-Methods: POST, DELETE, GET, OPTIONS
Access-Control-Allow-Headers: Content-Type, X-Requested-With,
X-Forwarded-Host, X-PINGOTHER, Authorization, ES-LongPoll,
ES-ExpectedVersion, ES-EventId, ES-EventType, ES-RequiresMaster,
ES-HardDelete, ES-ResolveLinkTo, ES-ExpectedVersion
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Location, ES-Position
Location: http://localhost:2113/streams/newstream/0
Content-Type: text/plain; charset=utf-8
Server: Mono-HTTPAPI/1.0
Content-Length: 0
Keep-Alive: timeout=15,max=100
~ cat data.json
[
{
"eventId": "13acffdd-73dc-1014-b57c-dfdd7340af8a",
"eventType": "event-type",
"data": {
"a": "1"
}
}
]
~ curl -i -d @data.json "http://localhost:2113/streams/newstream"
-H "Content-Type:application/vnd.eventstore.events+json"
HTTP/1.1 201 Created
Access-Control-Allow-Methods: POST, DELETE, GET, OPTIONS
Access-Control-Allow-Headers: Content-Type, X-Requested-With,
X-Forwarded-Host, X-PINGOTHER, Authorization, ES-LongPoll,
ES-ExpectedVersion, ES-EventId, ES-EventType, ES-RequiresMaster,
ES-HardDelete, ES-ResolveLinkTo, ES-ExpectedVersion
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Location, ES-Position
Location: http://localhost:2113/streams/newstream/0
Content-Type: text/plain; charset=utf-8
Server: Mono-HTTPAPI/1.0
Content-Length: 0
Keep-Alive: timeout=15,max=100
~