Making the server that runs on your PC available to all on the Internet requires a configuration that depends on the network you're attached to, and might need to be set up by your system administrator. Instead we are going to deploy our code on pythonanywhere that offers free hosting of web projects and a full Python environment.
app.run()
return members
(that returns a list) to return str(json.dumps(members))
, and return members_in_range
to return str(json.dumps(members_in_range))
curl http://yourpythonanywhereusername.eu.pythonanywhere.com/members curl http://yourpythonanywhereusername.eu.pythonanywhere.com/members/A07 curl 'http://yourpythonanywhereusername.eu.pythonanywhere.com/membersInRange?minAge=10&maxAge=40'