Skip to content

Instantly share code, notes, and snippets.

@tjklemz
Last active August 29, 2015 14:14
Show Gist options
  • Save tjklemz/9fbb44b03fcabc6a9ecb to your computer and use it in GitHub Desktop.
Save tjklemz/9fbb44b03fcabc6a9ecb to your computer and use it in GitHub Desktop.
{
"_links": {
"self": { "href": "... /api" },
"reports": { "href": "... /reports/groups" },
"other" : { "href": "..." }
}
}
{
"_links": {
"self": { "href": "..." }
},
"_embedded": {
"group": [{
"_links": {
"self": { "href": "..." }
"reports": { "href": "..." }
},
"name": "some group name",
"desc": "maybe some other data"
}, {
"_links": {
"self": { "href": "..." }
"reports": { "href": "..." }
},
"name": "some other group name",
"desc": "maybe some data here"
}]
}
}
{
"_links": {
"self": { "href": "..." }
},
"_embedded": {
"report": [{
"_links": {
"self": { "href": "..." }
},
"name": "some report name",
"desc": "maybe some other data"
}, {
"_links": {
"self": { "href": "..." }
},
"name": "some other report name",
"desc": "maybe some data here"
}]
}
}
@tjklemz
Copy link
Author

tjklemz commented Feb 4, 2015

For the "..." sections, fill in with the appropriate URLs on the server side.

@tjklemz
Copy link
Author

tjklemz commented Feb 4, 2015

Not worried about "how do we generate reports?" yet.

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