ForSURE.web.downloads

baseURL = '/download'

Base URL for all requests

POST {baseURL}/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()

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}/{unique_id}
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()

Schedule a sending of the report to the correct government.

Parameters
  • file_name: Name of the report
  • full_path: Full path of the report