Skip to content

dunossauro/live_149_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

live_149_api

Flask rest api da live 149

Como rodar esse projeto

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
export FLASK_APP=app
export FLASK_ENV=Development
export FLASK_DEBUG=True

flask run

Como fazer as migrações

flask db init
flask db migrate
flask db upgrade

Rotas

Endpoint           Methods  Rule
-----------------  -------  -----------------------
books.book_ids     GET      /book/<_id>/
books.book_search  GET      /books/search/<term>
books.books        GET      /books/
books.books        GET      /books/page/<int:page>/
books.index        GET      /
books.popular      GET      /populate/
static             GET      /static/<path:filename>

About

Flask rest api da live 149

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published