Skip to content

Instantly share code, notes, and snippets.

@EchoAbstract
Created February 28, 2012 03:51
Show Gist options
  • Save EchoAbstract/1929275 to your computer and use it in GitHub Desktop.
Save EchoAbstract/1929275 to your computer and use it in GitHub Desktop.
REST Requests for One-to-Many
GET /appdata/[appKey]/stories/?query={"name":"Dewey Defeats Truman"}
[{"_id": "deweyDefeatsTruman",
"name": "Dewey Defeats Truman",
"reporter": "Arthur Sears Henning"}]
GET /appdata/[appKey]/comments/?query={"storyId":"deweyDefeatsTruman"}
[{"_id": "001",
"storyId": "deweyDefeatsTruman",
"username": "hstruman",
"text": "This is one for the books"},
{"_id": "002",
"storyId": "deweyDefeatsTruman",
"username": "ChiTownTrib",
"text": "Oops! We goofed!"},
{"_id": "003",
"storyId": "deweyDefeatsTruman",
"username": "NYDewey",
"text": "Dang!"}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment