- run sudo docker compose up --build
- run uvicorn api.main:my_app --reload
- curl -X POST -H "Content-Type: application/json" -d '{"title": "TITLE", "author": "AUTHOR", "isbn": "342wwe34", "year": 0000}' http://localhost:8000/books
N/B - you can change the TITLE, AUTHOR, '342WWE34, 0000, to any data you want
- curl -X PUT -F "title=New Title" -F "author=New Author" -F "isbn=dfjkedfjkwf" -F "year=2025" http://localhost:8000/books/{book_id}
n/b replace {book_id} with a specifc number of a book out of the books created and also the datas too if necessary
- curl -X DELETE http://localhost:8000/books/{book_id}
- cd into tests
- run python3 -m unittest test_main.py