Skip to content

louis70109/fastapi-upload-example

Repository files navigation

FastAPI Example

  • GET '/': Health check.
  • GET '/upload': Upload file page.
  • POST '/upload': Upload multi-file API.
    • Test case in 'tests/'.

Prerequisite

  • Python 3.7+
  • Docker

Development

pip install -r requirements.txt 
pytest tests
python main.py

or

docker-compose up
curl http://localhost:5000/

About

It is a FastAPI upload example of docker development

Resources

Stars

Watchers

Forks