Skip to content

KyleSkudlarek/basic_flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Install

# Initialize the virtual environment
python3 -m venv venv
source venv/bin/activate

# Install the project specific depdencies
pip3 install -r requirements.txt

How to Run

flask run

How to Unit Test

make test

How to Live Test

Get all players

curl --location --request GET '127.0.0.1:5000/api/players'

Get player by playerID

curl --location --request GET '127.0.0.1:5000/api/players/aardsda01'

Increment player height by playerID

curl --location --request PUT '127.0.0.1:5000/api/players/aardsda01/height' \
--data-raw ''

Increment player weight by playerID

curl --location --request PUT '127.0.0.1:5000/api/players/aardsda01/weight' \
--data-raw ''

About

A basic Flask app for APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published