Skip to content

Instantly share code, notes, and snippets.

@jen20
Created September 17, 2012 15:06
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 jen20/3737905 to your computer and use it in GitHub Desktop.
Save jen20/3737905 to your computer and use it in GitHub Desktop.
curl -i -H "Accept:text/json" "http://127.0.0.1:2113/streams/anewstream"
greg@ouroboros:~$ curl -i -H "Accept:text/json" "http://127.0.0.1:2113/streams/anewstream"
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, PUT, DELETE
Content-Type: application/json
Server: Mono-HTTPAPI/1.0
Date: Sat, 08 Sep 2012 16:04:07 GMT
Content-Length: 2312
Keep-Alive: timeout=15,max=100
{
"title": "Event stream 'anewstream'",
"id": "http://127.0.0.1:2113/streams/anewstream",
"updated": "2012-09-08T08:14:08.348643Z",
"author": {
"name": "EventStore"
},
"links": [
{
"uri": "http://127.0.0.1:2113/streams/anewstream",
"relation": "self"
},
{
"uri": "http://127.0.0.1:2113/streams/anewstream",
"relation": "first"
},
{
"uri": "http://127.0.0.1:2113/streams/anewstream/range/0/20",
"relation": "prev"
},
{
"uri": "http://127.0.0.1:2113/streams/anewstream/range/20/20",
"relation": "next"
}
],
"entries": [
{
"title": "anewstream #1",
"id": "http://127.0.0.1:2113/streams/anewstream/1",
"updated": "2012-09-08T08:14:08.348643Z",
"author": {
"name": "EventStore"
},
"summary": "Entry #1",
"links": [
{
"uri": "http://127.0.0.1:2113/streams/anewstream/1",
"relation": "edit"
},
{
"uri": "http://127.0.0.1:2113/streams/anewstream/event/1?format=text",
"type": "text/plain"
},
{
"uri": "http://127.0.0.1:2113/streams/anewstream/event/1?format=json",
"relation": "alternate",
"type": "application/json"
},
{
"uri": "http://127.0.0.1:2113/streams/anewstream/event/1?format=xml",
"relation": "alternate",
"type": "text/xml"
}
]
},
{
"title": "anewstream #0",
"id": "http://127.0.0.1:2113/streams/anewstream/0",
"updated": "2012-09-08T08:14:08.345651Z",
"author": {
"name": "EventStore"
},
"summary": "Entry #0",
"links": [
{
"uri": "http://127.0.0.1:2113/streams/anewstream/0",
"relation": "edit"
},
{
"uri": "http://127.0.0.1:2113/streams/anewstream/event/0?format=text",
"type": "text/plain"
},
{
"uri": "http://127.0.0.1:2113/streams/anewstream/event/0?format=json",
"relation": "alternate",
"type": "application/json"
},
{
"uri": "http://127.0.0.1:2113/streams/anewstream/event/0?format=xml",
"relation": "alternate",
"type": "text/xml"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment