Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch file sizes of the content on PDP #438

Open
yogeshVU opened this issue Oct 10, 2023 · 1 comment
Open

Fetch file sizes of the content on PDP #438

yogeshVU opened this issue Oct 10, 2023 · 1 comment
Assignees

Comments

@yogeshVU
Copy link
Collaborator

We need to fetch file sizes of the data on the PDP. This will be helpful in scenarios where we may want to disable downloading of large file sizes through the dashboard.

@yogeshVU
Copy link
Collaborator Author

yogeshVU commented Apr 2, 2024

One can fetch the files metadata for the given observation in PDP using /v2/Files/GetObservationFilesMetadata.:

https://leappremonitiondev.azurewebsites.net/v2/Files/GetObservationFilesMetadata?processId=0f2f4cae-2f22-42a0-aa6e-c708bad562a6&obsIndex=10 

Here is an example response json

[
  {
    "name": "10/0/asdasd.tar.gz",
    "sasUrl": null,
    "length": 23683136428,
    "hash": null
  }
]

The length presents the data in bytes..

@pmeijer pmeijer self-assigned this Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants