Skip to content

smarman85/python_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python_api

run locall:

python -m venv venv && source venv/bin/activate \
&& pip install --upgrade pip && pip install -r reqs.txt && python api.py

Run curls:

curl http://localhost:5000/api/v1/resources/books/all
curl http://localhost:5000/api/v1/resources/books?author=Connie+Willis
curl http://localhost:5000/api/v1/resources/books?author=Connie+Willis&published=1999
curl http://localhost:5000/api/v1/resources/books?published=2000
curl http://localhost:5000/api/v1/resources/books/all
curl http://localhost:5000/api/v1/resources/books?author=Connie+Willis
curl http://localhost:5000/api/v1/resources/books?author=Connie+Willis&published=1999
curl http://localhost:5000/api/v1/resources/books?published=2000

About

sample flask api

Resources

Stars

1 star

Watchers

1 watching

Forks

Packages

 
 
 

Contributors