Created
February 28, 2012 03:51
-
-
Save EchoAbstract/1929275 to your computer and use it in GitHub Desktop.
REST Requests for One-to-Many
This file contains 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
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