Description
Requirement:
Implement a new API which should provide capability for a data consumer to download datasets as a zip file based on the search query parameters that a data consumer provides as part of the API. To add more, the API should send a notification as an email to data consumer with the downloadable link of the datasets.
Key Points:
- Token is a mandatory field.
- At least one search query parameter is needed.
- Resource Id could be an optional parameter.
Sample API endpoint structure:
https://vermillion.datasetu.org/API_Name?token=sample_token&id=sample_id&gender=male
Sample output:
An email to the data consumer with following content.
Subject: Download Links
Content:
Dear consumer,
The downloadable links for the datasets you requested are ready to be served. Please use below link to download the datasets as a zip file.
Sample downloadable link:
https://vermillion.datasetu.org/consumer/token/uuid/filename.zip