Currently stroom.data.store.impl.DataDownloadResourceImpl#downloadZip is a POST that takes a FindMetaCriteria to respond with a ZIP octet stream.
It would be helpful to have an endpoint that is a GET with a path param of the stream ID to get a single stream. This saves the user of the API having to craft a criteria json object when they just want a single stream. e.g:
GET /api/dataDownload/v1/downloadZip/1234567
It may also be helpful to have an endpoint to download the data in non-zipped form, e.g.:
GET /api/dataDownload/v1/downloadZip/1234567 // downloads the main data stream for part 1
GET /api/dataDownload/v1/downloadZip/1234567?partNo=3&childType=meta // downloads the meta data for part 3
This is distinct from stroom.data.store.impl.DataResourceImpl#fetch(stroom.pipeline.shared.FetchDataRequest) which gives you a json object to have to work with.
Currently
stroom.data.store.impl.DataDownloadResourceImpl#downloadZipis a POST that takes aFindMetaCriteriato respond with a ZIP octet stream.It would be helpful to have an endpoint that is a GET with a path param of the stream ID to get a single stream. This saves the user of the API having to craft a criteria json object when they just want a single stream. e.g:
It may also be helpful to have an endpoint to download the data in non-zipped form, e.g.:
This is distinct from
stroom.data.store.impl.DataResourceImpl#fetch(stroom.pipeline.shared.FetchDataRequest)which gives you a json object to have to work with.