Skip to content

Add an endpoint to DataDownloadResourceImpl to download a single stream as a zip #5414

@at055612

Description

@at055612

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions