🍎 A mock REST API built with Flask to manage fridges and foods.
| templates | ||
| .gitignore | ||
| api_test.py | ||
| app.py | ||
| fridge.svg | ||
| preview.gif | ||
| README.md | ||
| requirements.txt | ||
Fridges API
A REST API of fridges with various foods like fruits built with Flask using Python.
Built from the Backend (Rest APIs and FLASK) Workshop by @lucentfong for @HackRU.
File Details
api.py- Flask API server, can be ran with commandflask run.api_test.py- Various HTTP requests using therequestsmodule to test the local flask server endpoints. You can also instead use Postman or Thunder Client on VSCode.requirements.txt- can be used with commandpip install -r requirements.txtto install all virtual environment dependencies (run this command after activating your virtual environment). You can instead solely installflaskfor the server.
Dependencies to Install
For the Flask server:
flask
For the API testing script:
requests
