- USERS
- create
- get all
- get {user_id}
- ITEMS
- get
- create
- FILES
- upload Files
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt
# to run the application
uvicorn main:app --reload
to access requestion json use async and await
@app.post("/")
async def read_root(request: Request):
header = request.headers
client = request.client.host
body = await request.json()
Accessing Request Headers: https://stackoverflow.com/questions/68231936/how-can-i-get-headers-or-a-specific-header-from-my-backend-api
access whole body request
https://christophergs.com/tutorials/ultimate-fastapi-tutorial-pt-7-sqlalchemy-database-setup/
Very Detailed
Very Bsic
Securing salt has password https://stackoverflow.com/questions/9594125/salt-and-hash-a-password-in-python
https://christophergs.com/tutorials/ultimate-fastapi-tutorial-pt-13-docker-deploy/