Skip to content

Releases: mkdf/api-factory

v0.9.5

24 Apr 13:14
Compare
Choose a tag to compare

document-id parameter added to /changes/ endpoint for filtering activity by document-id.

v0.9.4

11 May 10:32
Compare
Choose a tag to compare

Access control change - /changes/ endpoint now available to all users with read access to that dataset

v0.9.3

11 May 10:14
Compare
Choose a tag to compare

LIMIT parameter implemented to restrict number of returned entries.
Default max entries limited to 100 where no limit is supplied.
SORT parameter implemented to reverse sort order.

Notes for /changes/ endpoint

Data limits

By default, this API endpoint will only return a maximum of 100 items.
This can be changed by using either the timestamp parameter, the limit parameter, or
a combination of the two.

If only the timestamp parameter is specified, all entries since that timestamp will
be returned, with no limits. If you wish to limit the amount of data returned whilst
also specifying a timestamp parameter, simply also specify a limit parameter.

Please take care not to make repeated requests for unlimited change entries. Requesting
all entries since the creation of the dataset should generally
be done once only, when building or rebuilding a complete replica of a dataset. You should then
keep a record of the timestamp of when the most recent request was made and subsequently only
request incremental changes since that timestamp.

Examples

GET /changes/{dataset-id} - The most recent 100 entries will be returned

GET /changes/{dataset-id}?timestamp=1651363200 - return all entries since
Sunday, 1 May 2022 00:00:00, with no limits on the amount of entries returned

GET /changes/{dataset-id}?timestamp=1651363200&limit=20 - return entries since
Sunday, 1 May 2022 00:00:00, limited to the 20 most recent entries.

GET /changes/{dataset-id}?limit=200 - The most recent 200 entries will be returned,
regardless of timestamp.

Sorting

The /changes/ endpoint returns entries sorted in reverse chronological
order by default (most recent first). Specifying the parameter sort=1 will
reverse the default sort order, giving the oldest entries first. An example of returning
20 entries since Sunday, 1 May 2022 00:00:00 starting with the oldest would be:

GET /changes/{dataset-id}?timestamp=1651363200&limit=20&sort=1

v0.9.1

27 Apr 10:52
Compare
Choose a tag to compare

Activity/change monitoring endpoint changed from
GET /activity/{dataset-id}
to
GET /changes/{dataset-id}

v0.9.0

19 Apr 14:42
beeb80e
Compare
Choose a tag to compare

Users can now retrieve details of write activity on a dataset (create/update/delete for both JSON documents and files), enabling the recreation of a dataset for mirroring and replication purposes, using the API function:
GET /activity/{dataset-id}
This functionality is available only to those with both read and write access to a dataset. Requests should be authenticated with an API key in the normal way.

v0.8.4

16 Feb 14:57
Compare
Choose a tag to compare
Minor bugfixes

v0.8.3

09 Feb 10:11
Compare
Choose a tag to compare
Add file metadata to Activity Log entries on file create/update