Skip to content

Instantly share code, notes, and snippets.

@tauren
Created January 14, 2011 00:35
Show Gist options
  • Save tauren/778929 to your computer and use it in GitHub Desktop.
Save tauren/778929 to your computer and use it in GitHub Desktop.
/*
* REST endpoint: /projects
*/
var projects = [
{
"id": 2,
"name": "Project 1",
"members": [
{"id": 1, "name": "Tom", "phone": "555-5555"},
{"id": 2, "name": "Sue", "phone": "555-5555"}
]
},
{
"id": 2,
"name": "Project 2",
"members": [
{"id": 1, "name": "Tom", "phone": "555-5555"}
]
}
]
/*
* REST endpoint: /user/:id
*/
var user = {
"id": 1,
"name": "Tom",
"phone": "555-5555",
"email": "tom@domain.com",
"address": {
"street": "555 SW Main",
"city": "Somewhere"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment