For MySQL changes, see https://codehandbook.org/python-web-application-flask-mysql/
Instructions:
- Install Flask
pip install flask-restful
- Install Flask-MySQL connector
pip install flask-mysql
- Run script
python restful_mysql.py
- Use a program like Postman to perform GET, POST, PUT, and DELETE operations.
http://127.0.0.1:5000/user/
http://127.0.0.1:5000/users/list
http://127.0.0.1:5000/user/
key: age
key: occupation