...
The route in question is a GET route which requires them to be called with a GET request. To create simple get requests we recommend the python package requests.
...
For retrieving all SWPC events which are stored within the database we can use now a GET request with the address from above.
Code Block | ||
---|---|---|
| ||
# retrieving data print('downloading all data...') swpc_events = requests.get("http://localhost:8005/swpc_event/list").json() print(swpc_events) |
...