Fetch all versions

The app fetches all the versions of the file you opened.

Contents

Fetch all versions

Get a data ID handle

The app obtains a data ID handle for the versioned structured data (type tag 501) that contains the file you opened. The ID of this structured data is based on your user prefix and the name of the file.

Get data ID handle

POST /data-id/structured-data
store.js
safeDataId.getStructuredDataHandle(ACCESS_TOKEN, btoa(`${USER_PREFIX}:${filename}`), 501)

Get a structured data handle

The app obtains a structured data handle using the data ID handle of the file you opened.

Get structured data handle

GET /structured-data/handle/:dataIdHandle
store.js
safeStructuredData.getHandle(ACCESS_TOKEN, dataIdHandle)

After obtaining a structured data handle, the app drops the data ID handle of the file you opened.

Drop data ID handle

DELETE /data-id/:handleId
store.js
safeDataId.dropHandle(ACCESS_TOKEN, dataIdHandle)

Fetch the metadata of the file

The app fetches the metadata of the structured data that contains all the versions of the file you opened.

Get structured data metadata

GET /structured-data/metadata/:handleId
store.js
safeStructuredData.getMetadata(ACCESS_TOKEN, sdHandleId)

The app now knows the number of versions contained inside the structured data.

Fetch each version

The app reads each version of the structured data one by one.

Read structured data

GET /structured-data/:handleId/:version?
store.js
safeStructuredData.readData(ACCESS_TOKEN, sdHandleId, version)

After reading all the versions of the file you opened, the app displays them in the UI.

Fetch all versions

results matching ""

    No results matching ""