Skip to content

Instantly share code, notes, and snippets.

@peterkhayes
Last active August 29, 2015 14:02
Show Gist options
  • Save peterkhayes/2276e305ff74cce8131e to your computer and use it in GitHub Desktop.
Save peterkhayes/2276e305ff74cce8131e to your computer and use it in GitHub Desktop.
On schoolTeacher resource:
{
_items: [
{
_id: 1234
...
_links: {
befriend/poolWith/etc: {
href: "/api/teacher/1234/friends",
method: "POST",
schema: {
properties: {
code: {
type: "string"
required: true
}
}
}
}
}
},
{
_id: 5678
...
_links: {
befriend/poolWith/etc: {
href: "/api/teacher/5678/friends",
method: "POST",
schema: {
properties: {
code: {
type: "string"
required: true
}
}
}
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment