Skip to content

Instantly share code, notes, and snippets.

@AndrewHenderson
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewHenderson/dce354af63616f65cbc9 to your computer and use it in GitHub Desktop.
Save AndrewHenderson/dce354af63616f65cbc9 to your computer and use it in GitHub Desktop.
Proposed Transactions Aggregates API
// I'm proposing we use the CR version at the bottom with the flexibility
// to later wrap it in the JSON API envelope.
// JSON API
// GET http://chromeriver.com/transactionAggregates
{
"links": {
"self": "http://chromeriver.com/transactionAggregates",
"next": "http://chromeriver.com/transactionAggregates?page[offset]=2",
"last": "http://chromeriver.com/transactionAggregates?page[offset]=10"
},
"data": {
"type": "transactionAggregates",
"attributes": {
"transactionGroups": [...],
"transactionMergeSets": [...],
"transactions": [...]
},
"links": {
"self": "http://chromeriver.com/transactionAggregates?page[offset]=1",
}
}
}
// CR API
// GET http://chromeriver.com/transactionAggregates
{
"transactionGroups": [...],
"transactionMergeSets": [...],
"transactions": [...]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment