ForSURE.web.history
baseURL =
'/history'
Base URL for all requests
GET {baseURL}/get-report
async def get_report_data()
async def get_report_data()
Get the data for a given report. If the report_name is for the debugger, this will return all the debugger data.
Parameters
- report_name: Name of the report
- inprogress: Whether the report is still in progress or the timeframe is in the past.
Returns
Successful response
[ { "Type": "DE", "Amount Total": 5115, "Weight Total (kg)": 26.589, "Amount B2B": 3443, "Weight B2B (kg)": 17.944, "Amount B2C": 1672, "Weight B2C (kg)": 8.645, "Category": "Packaging" } ]
POST {baseURL}/delete-report
async def delete_report_endp()
async def delete_report_endp()
Delete 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
json {"message": "Report deleted successfully."}
POST {baseURL}/delete-multiple-reports
async def delete_multiple_reports()
async def delete_multiple_reports()
Delete the specified reports.
Parameters
- report_names: List of names of reports.
- inprogress: Whether the reports are still in progress or the timeframe is in the past.
Returns
json {"message": "Reports deleted successfully."}