The goal of this app is to use it on the receiving end of a load testing tool. It supports:
- Slow response times with /v1/sleep
- Uploading files with the GUI at: /uploadfile or via API at: /v1/uploadfile
- Development environment
uvicorn main:app --reload
$ docker build -t simulate-workload .
$ docker run -p 8000:8000 simulate-workload
- In your browser, navigate to
https://127.0.0.1:8000/v1/sleep?ms=1000