Skip to content

Return file info in GetPrivateUrlDataset use case #477

Description

@vera

The dataverse API for retrieving a dataset using a private URL /api/datasets/privateUrlDatasetVersion/... returns information about dataset files, but the transformer used by the GetPrivateUrlDataset use case doesn't transform it, so it's not returned:

public async getPrivateUrlDataset(token: string, keepRawFields: boolean): Promise<Dataset> {
return this.doGet(
this.buildApiEndpoint(this.datasetsResourceName, `privateUrlDatasetVersion/${token}`),
false,
{
returnOwners: true
}
)
.then((response) => transformVersionResponseToDataset(response, keepRawFields))
.catch((error) => {
throw error
})
}

Image

It would be useful to receive the file info from that use case.

Should the use case/transformer be extended? If yes, I'd be open to creating a PR for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions