Skip to content

Instantly share code, notes, and snippets.

@eldewall
Last active December 15, 2015 10:18
Show Gist options
  • Save eldewall/5244335 to your computer and use it in GitHub Desktop.
Save eldewall/5244335 to your computer and use it in GitHub Desktop.
GET /company/1
{
"Id": 1,
"Name": "Företaget",
"Resources": {
"Notes": "http://host/company/1/notes",
"Users": "http://host/company/1/users",
"Facilities": "http://host/company/1/facilities"
}
}
Get /company/1/notes
{
[
{ "Id": 5, "Note" : "Inte betalt" },
{ "Id": 7, "Note" : "Svarar inte på mail" }
]
}
Get /note/5
{
"Id": 5,
"Note" : "Inte betalt",
"NotedAt" : "2013-02-26 10:56"
"Resources" : {
"NotedBy" : "http://host/users/50"
"NotedOn" : "http://host/company/1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment