ForSURE.web.downloads
baseURL =
'/download'
Base URL for all requests
POST {baseURL}/report/
async def download_report()
async def download_report()
Download the specified report.
Parameters
- report_name: Name of the report
- inprogress: Whether the report is still in progress or the timeframe is in the past.
Returns
File download
POST {baseURL}/multiple-reports
async def download_reports()
async def download_reports()
Download multiple reports as a ZIP archive.
Parameters
- inprogress: Whether the report is still in progress or the timeframe is in the past.
- report_names: List of report_names
Returns
Zip file download
POST {baseURL}/create-download-link
async def create_link()
async def create_link()
Create a download link that can be shared with others.
Parameters
- file_name: Name of the report
- full_path: Path of the report
Returns
Successful response
{ "link": f"download/{unique_id}", "username": "username", "password": "password", "reportname": "report_name" }
POST {baseURL}/{unique_id}
async def download_file()
async def download_file()
Access and download the report shared using create_link(). Requires authentication with the generated username and password
Returns
File download
POST {baseURL}/send-report
async def send_report()
async def send_report()
Schedule a sending of the report to the correct government.
Parameters
- file_name: Name of the report
- full_path: Full path of the report