Skip to content

Instantly share code, notes, and snippets.

@AndrewHenderson
Last active August 29, 2015 14:21

Revisions

  1. AndrewHenderson revised this gist May 14, 2015. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions transactionAggregatesAPI.js
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    // 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

  2. AndrewHenderson renamed this gist May 14, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. AndrewHenderson revised this gist May 14, 2015. 1 changed file with 12 additions and 0 deletions.
    12 changes: 12 additions & 0 deletions transactionsAPI.js
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    // JSON API
    // GET http://chromeriver.com/transactionAggregates

    {
    "links": {
    "self": "http://chromeriver.com/transactionAggregates",
    @@ -15,4 +18,13 @@
    "self": "http://chromeriver.com/transactionAggregates?page[offset]=1",
    }
    }
    }

    // CR API
    // GET http://chromeriver.com/transactionAggregates

    {
    "transactionGroups": [...],
    "transactionMergeSets": [...],
    "transactions": [...]
    }
  4. AndrewHenderson created this gist May 14, 2015.
    18 changes: 18 additions & 0 deletions transactionsAPI.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    {
    "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",
    }
    }
    }