Skip to content

Instantly share code, notes, and snippets.

@moul moul/pathwar.json
Last active Aug 29, 2015

Embed
What would you like to do?
pathwar.json
➜ ~ clear; time http 'http://root-token:@localdocker.xxx:5000/organization-users?where={"user":"11cade63-e648-4fa2-b780-2597b642029d"}'
HTTP/1.0 200 OK
Content-Length: 1112
Content-Type: application/json
Date: Thu, 26 Feb 2015 18:39:30 GMT
Last-Modified: Tue, 24 Feb 2015 09:33:44 GMT
Server: Eve/0.5.1 Werkzeug/0.9.6 Python/2.7.9
{
"_items": [
{
"_created": "Tue, 24 Feb 2015 09:33:44 GMT",
"_etag": "10544d4f4a3f8c30f9127043600cde28d6119ff7",
"_id": "ae9e57b5-325f-4d0f-b48b-6be9aeb842ae",
"_links": {
"self": {
"href": "organization-users/ae9e57b5-325f-4d0f-b48b-6be9aeb842ae",
"title": "organization user"
}
},
"_updated": "Tue, 24 Feb 2015 09:33:44 GMT",
"organization": "ffbe2812-bc53-4935-b6a4-7a98ff9f6dcb",
"role": "owner",
"user": "11cade63-e648-4fa2-b780-2597b642029d"
},
{
"_created": "Tue, 24 Feb 2015 09:33:44 GMT",
"_etag": "6e9954987595ef91a79b3a7e43b3ea30f14572c4",
"_id": "c63bcd11-25ef-4a17-be52-d5a9e0b408a1",
"_links": {
"self": {
"href": "organization-users/c63bcd11-25ef-4a17-be52-d5a9e0b408a1",
"title": "organization user"
}
},
"_updated": "Tue, 24 Feb 2015 09:33:44 GMT",
"organization": "e7bdab3c-ebb2-468b-9202-d1cc7532f18b",
"role": "owner",
"user": "11cade63-e648-4fa2-b780-2597b642029d"
}
],
"_links": {
"parent": {
"href": "/",
"title": "home"
},
"self": {
"href": "organization-users?where={\"user\":\"11cade63-e648-4fa2-b780-2597b642029d\"}",
"title": "organization users"
}
},
"_meta": {
"max_results": 25,
"page": 1,
"total": 2
}
}
http 0.24s user 0.08s system 92% cpu 0.338 total
➜ ~ clear; time http 'http://root-token:@localdocker.xxx:5000/organizations?where={"_id":{"$in":["ffbe2812-bc53-4935-b6a4-7a98ff9f6dcb", "e7bdab3c-ebb2-468b-9202-d1cc7532f18b"]}}&embedded={"sessions":1}'
HTTP/1.0 200 OK
Content-Length: 1348
Content-Type: application/json
Date: Thu, 26 Feb 2015 18:39:34 GMT
Last-Modified: Tue, 24 Feb 2015 09:33:44 GMT
Server: Eve/0.5.1 Werkzeug/0.9.6 Python/2.7.9
{
"_items": [
{
"_created": "Tue, 24 Feb 2015 09:33:44 GMT",
"_etag": "17d2265949db9bfbd89d10999d5d60975e5c4885",
"_id": "e7bdab3c-ebb2-468b-9202-d1cc7532f18b",
"_links": {
"self": {
"href": "organizations/e7bdab3c-ebb2-468b-9202-d1cc7532f18b",
"title": "organization"
}
},
"_updated": "Tue, 24 Feb 2015 09:33:44 GMT",
"name": "staff",
"owner": "11cade63-e648-4fa2-b780-2597b642029d",
"session": "63b46c79-d8fa-47b2-bd83-02c3e8f53dea",
"statistics": "1f2e8ca7-ac96-4b0c-ac6a-d631d951c34f"
},
{
"_created": "Tue, 24 Feb 2015 09:33:44 GMT",
"_etag": "87cdeba7946161acc1479c0a933e29d1fc67f1fc",
"_id": "ffbe2812-bc53-4935-b6a4-7a98ff9f6dcb",
"_links": {
"self": {
"href": "organizations/ffbe2812-bc53-4935-b6a4-7a98ff9f6dcb",
"title": "organization"
}
},
"_updated": "Tue, 24 Feb 2015 09:33:44 GMT",
"gravatar_email": "joe@pathwar.net",
"gravatar_hash": "74e87a1b7776a76e2880cc0fbb84f8de",
"name": "default organization for joe",
"owner": "11cade63-e648-4fa2-b780-2597b642029d",
"session": "7c29c04a-230f-46ec-b583-9fe3ce57e350",
"statistics": "2683cd3a-d89d-4102-9164-6c556e4ca580"
}
],
"_links": {
"parent": {
"href": "/",
"title": "home"
},
"self": {
"href": "organizations?where={\"_id\":{\"$in\":[\"ffbe2812-bc53-4935-b6a4-7a98ff9f6dcb\", \"e7bdab3c-ebb2-468b-9202-d1cc7532f18b\"]}}",
"title": "organizations"
}
},
"_meta": {
"max_results": 25,
"page": 1,
"total": 2
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.