Skip to content

Instantly share code, notes, and snippets.

@blackxored
Created May 31, 2014 18:10
Show Gist options
  • Save blackxored/bede920770603525839e to your computer and use it in GitHub Desktop.
Save blackxored/bede920770603525839e to your computer and use it in GitHub Desktop.
{
collection: {
version: "1.0",
href: "/tasks"
items: [ {
href: "/tasks/1",
data: [{
name: "name", value: "My first task", prompt: "Name"
name: "description", value: "My first task description", prompt: "Description"
name: "author", value: "Adrian Perez", prompt: "Author"
}, {
name: "name", value: "My second task", prompt: "Name",
name: "Description", value: "My second task description", prompt: "Description",
}],
}],
links: [{
rel: "author", href: "/users/adrian", prompt: "Author"
}],
queries: [],
template: {
data: [
{ name: "name", value: "", prompt: "Name"},
{ name: "description", value: "", prompt: "Description"}
]
},
/* error: {} */
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment