pip install fastapi
pip install "uvicorn[standard]"
pip install python-multipart
pip install pandas
uvicorn main:app --reload
Open the API in a browser:
http://127.0.0.1:8000/docs
Upload the departments CSV in the "/departments" POST endpoint
Upload the employees CSV in the "/employees" POST endpoint
Upload the jobs CSV in the "/jobs" POST endpoint
Open a new tab in the "query1" endpoint
http://127.0.0.1:8000/query1
Open a new tab in the "query2" endpoint
http://127.0.0.1:8000/query2