Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagepy
# retrieving data
print('downloading all data...')
swpc_events = requests.get("http://localhost:8005/swpc_event/list").json()

print(swpc_events)

...