-
Notifications
You must be signed in to change notification settings - Fork 0
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
Enable zip file downloading #215
Comments
@dcrichto1 @hoodriverheather @yuliujpl here are some ideas on how this might work
At any point in step 4, an error could occur
Using the UUID, the UI can ask about the status of the ZIP file assembly:
@dcrichto1 @hoodriverheather @yuliujpl what do you think? What should some of these thresholds (space and time) be? |
@yuliujpl @dcrichto1 @hoodriverheather, reminder:
No feedback means we're good and I'll start implementing the server side of this |
@nutjob4life This looks like a good plan to me. Want me to add to our staff agenda for tomorrow? |
@hoodriverheather sure! |
@yuliujpl mentioned in Teams chat:
Probably; but it'll also need access to the |
@yuliujpl the API for this is available on labcas-dev as follows:
You can (and should) pass the JWT (as a The return is a Example usage: $ curl --request POST --insecure \
--url 'https://labcas-dev.jpl.nasa.gov/data-access-api/auth' \
--header 'Content-type: application/x-www-form-urlencoded' \
--data-urlencode 'username=kelly' \
--data-urlencode 'password=REDACTED' > /tmp/jwt
$ curl --header "Authentication: Bearer `cat /tmp/jwt`" \
--cookie "JasonWebToken=`cat /tmp/jwt`" \
'https://labcas-dev.jpl.nasa.gov/data-access-api/[email protected]&query=id:Pre-diagnostic_PDAC_Images/City_of_Hope/COH_0171/COH_01710003/DICOM/I883*'
69484d3b-7f0e-4252-ba1c-26371f8deba2 Also: I'm wondering if passing a Solr query makes sense? Maybe file IDs would be better? |
@yuliujpl looking for feedback on this (see above comment) Some questions:
|
@yuliujpl okay, so how about this: Instead of a GET request, let's make it a POST with a JSON payload provided by the UI with three possible keys:
It is an error to provide both The response can still be be a Does this sound okay? |
Backend and frontend needs to be developed to enable zip file downloading.
The text was updated successfully, but these errors were encountered: