Step-by-step guide of running this solution:-
- run the python script with any IDE.
- Use postman or curl to send API request for Postman :-
- Open Postman.
- Choose the request type as POST.
- Enter the URL: http://127.0.0.1:5000/generate_report.
- Go to the "Body" tab and select "raw", then choose "JSON (application/json)" from the dropdown.
- Enter the JSON data: {"start_time": 1527618419, "end_time": 1527618420}.
- Click the "Send" button.
This will return a CSV file as an output to your postman.