[Spike - API] Extend API to get files download size without original tabular files size #9958
Labels
pm.GREI-d-2.7.1
NIH, yr2, aim7, task1: R&D UI modules for creating datasets and supporting publishing workflows
pm.GREI-d-2.7.2
NIH, yr2, aim7, task2: Implement UI modules for creating datasets and publishing workflows
Size: 10
A percentage of a sprint. 7 hours.
User Role: API User
Makes use of APIs
Milestone
Overview of the Feature Request
The current API endpoint
/api/datasets/$ID/versions/$VERSIONID/downloadsize
shows the combined size in bytes of all the files available from a particular dataset version.This endpoint is not suitable for the current SPA needs, in particular the files tab, since it includes the size of the tabular files before being transformed.
We need the total size of the final downloadable files, without additional data.
It's also interesting that the endpoint returns a format that is easier to consume/transform. The current /downloadsize has the following format:
We can include the bytes in a separate parameter, direct to read.
The new API changes will be consumed by: IQSS/dataverse-client-javascript#86
What kind of user is the feature intended for?
API user
What inspired the request?
What existing behavior do you want changed?
N/A
Any brand new behavior do you want to add to Dataverse?
Extend the API to get files download size without original tabular files size
Any open or closed issues related to this feature request?
The text was updated successfully, but these errors were encountered: