Skip to content

RobertaBtt/PythonFlaskAPIFile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Flask API File

sudo apt install python3-venv
virtualenv -p /usr/bin/python3.8 PYTHON_ENV_3.8
source PYTHON_ENV_3.8/bin/activate
pip install -r requirements.txt 
FLASK_APP=app.py flask run

The CRUD operation are done using the HTTP protocol:

  • GET for reading lists of files (Read)
  • GET for read one file if it is specified
  • POST for creating a new file (Create)
  • DEL for deleting the file (Delete)
  • PUT for update the file (Update)

I test the API using curl and Postman

API are:

Locally updated to Python3.8, fix virtual environment python 3.8

About

Sample use of the Flask mini framework, just to provide example of API and CRUD operations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages