Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

basicflaskrest

Basic rest API based on Flask restful API to insert data into a database, retrive, and update it.

Installation

python3 -m venv venv

source venv/bin/activate

pip install -r requirements.txt

Run

  1. Run the server first: python3 main.py
  2. Run the test script: python3 test.py

Short Explanation

  • 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.

Sources

  1. Flask Framework ---> URL: https://flask.palletsprojects.com/en/2.3.x/

  2. Flask Restful API: ---> URL: https://flask-restful.readthedocs.io/en/latest/

  3. Flask-Alchemy Database: ---> URL: https://flask-sqlalchemy.palletsprojects.com/en/3.0.x/

About

Basic rest API based on Flask restful API which inserts data into a database, retrives it, and updates it.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages