This is a food inventory api using FastAPI and sqlalchemy. This API let users create, read and update a supermarket inventory
To create db and tables run: python ormconnector/create_db.py
To start a server run: uvicorn main:app --reload
To review endpoints go to host:port/docs
- /foods/ to view all items
- /foods/ as a POST request, to add a new item in the inventory
- /foods// to view a single item
- /foods// as a DELETE request to delete an item
- /foods//amount/ as a PUT request to update the amount value of an item
- /foods//price/ as a PUT request to update the price value of an item
- /foods//vat/ as a PUT request to update the vat value of an item