Skip to content

Instantly share code, notes, and snippets.

@smellymonk
Last active August 29, 2015 14:14
Show Gist options
  • Save smellymonk/9fbb44b03fcabc6a9ecb to your computer and use it in GitHub Desktop.
Save smellymonk/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"
}]
}
}
@smellymonk
Copy link
Author

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

@smellymonk
Copy link
Author

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