Skip to content

Instantly share code, notes, and snippets.

@tjklemz
Created February 8, 2015 06:57
Show Gist options
  • Save tjklemz/d46a964bdc777b41cc7f to your computer and use it in GitHub Desktop.
Save tjklemz/d46a964bdc777b41cc7f to your computer and use it in GitHub Desktop.
embedded vs links
{
"_links": {
"self": { "href" : "https://cloud.paulmarsoftware.com/api/nobl/reports" },
"group": [
{ "title": "Accounting", "href" : "https://cloud.paulmarsoftware.com/api/nobl/reports/accounting" },
{ "title": "Account Details", "href" : "https://cloud.paulmarsoftware.com/api/nobl/reports/account-details" },
...
...
]
}
}
@tjklemz
Copy link
Author

tjklemz commented Feb 8, 2015

N.B. "title" instead of "name". These are now "pure links" in the traditional Hypermedia sense. There's no data associated with them like with an embedded resource. The only properties you get are "rel" (which is "group"), "title", "href", and "profile" (which we're putting off until later).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment