Basic rest API based on Flask restful API to insert data into a database, retrive, and update it.
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
- Run the server first:
python3 main.py
- Run the test script:
python3 test.py
- The put request enables the user to insert data into the database
- The GET request enables the user to retrieve data from the database
- The Patch request enables the user to update an existing data in the database.
-
Flask Framework ---> URL: https://flask.palletsprojects.com/en/2.3.x/
-
Flask Restful API: ---> URL: https://flask-restful.readthedocs.io/en/latest/
-
Flask-Alchemy Database: ---> URL: https://flask-sqlalchemy.palletsprojects.com/en/3.0.x/