Fully functional CRUD API app that allows users to view the collection of brews (GET), as well as Create, Update, and Delete brews from the collection.
- chatGPT
- Beginners Guide to Docker
- Install Docker Desktop and verify installation
- Run
docker --versionanddocker-compose --versionto ensure both are correctly installed.
- Run
PORT- 8000
- Clone repo
- Install dependencies (see above)
- See the page in browser by running
docker-compose up - Open the page in the localhost specified in the terminal to view GET request and add
/api/v1/brewsto end of url
Once server is running, use Thunder Bird or other application of your choice to complete GET, PUT, POST, DELETE Requests. GET requests also can be completed in the browser.
- User Thunder Client to add JSON body, OR go to bottom of page
http://0.0.0.0:8000/api/v1/brews/
{
"owner": 1,
"name": "Vanilla Porter",
"brew_type": "ST",
"brewery": "Breckenridge Brewery",
"description": "Aromas of vanilla and toasted grain set the stage for mellow flavors of vanilla and dark roasted malts in this popular porter."
}http://0.0.0.0:8000/api/v1/brews/{id}/- edit JSON body (see example above)
python manage.py test