Skip to main content

Point-in-Time Queries

Onslip 360 keeps records of all historic data and all standard resources will return historic data if an @ sign and an extended ISO 8601-formatted timestamp is appended to the resource. For instance, the following URL, when issued a GET request, will return the stock-balances for onslip.com's location #2 at the turn of the year (assuming your local timezone is GMT+0100).

https://test.onslip360.com/v1/~onslip.com/locations/2/stock-balances/@2016-12-31T23:00:00.000Z

Apart from stock balance reports, this could also be used to enable unlimited undo in user interfaces or implement full change tracking (making it easy to find out who made a specific change, what changed, and when the change was made).

The WebDav-inspired verb REPORT can be used on all versioned entity resources (with a request entity specifying type as revisions) to retrieve a list of the 1000 most recent revisions of the resource.