Created
August 19, 2010 02:58
-
-
Save couchoud/536884 to your computer and use it in GitHub Desktop.
post 4 - cs1
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
// A generic User object | |
user = { | |
id : 1, | |
firstName : "John", | |
lastName : "Doe", | |
email : "john.doe@fooey.com" | |
} | |
// REST api endpoint | |
"http://www.yourrestapi.com/users/1/" | |
// A generic Recipe object | |
recipe = { | |
id : 5, | |
user_id : 1, | |
title : "My Delicious Recipe", | |
} | |
// REST api endpoint | |
"http://www.yourrestapi.com/recipes/5/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment