Initial (unretired) package for Fedora 37
Updates may require up to 24 hours to propagate to mirrors. If the following command doesn't work, please retry later:
sudo dnf install --refresh --advisory=FEDORA-2022-561fbfdbf7 \*
Please login to add feedback.
This update has been submitted for testing by music.
This update's test gating status has been changed to 'ignored'.
This update has been pushed to testing.
Tested basic service with auth and GET and POST
Simple web app is functional
This update can be pushed to stable now if the maintainer wishes
Tested https://fastapi.tiangolo.com/tutorial/body-nested-models/#use-the-submodel-as-a-type
Basically a simple PUT and GET.
How it was tested:
sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-561fbfdbf7 python-fastapi
sudo dnf install pip
pip install uvicorn
uvicorn main:app --reload &
curl -X PUT http://127.0.0.1:8000/items/1 -d '{ "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2, "tags": ["rock", "metal", "bar"], "image": { "url": "http://example.com/baz.jpg", "name": "The Foo alive" }}' -H 'Content-Type: application/json'
curl http://127.0.0.1:8000/items/1
curl -X PUT http://127.0.0.1:8000/items/1 -d '{ "name": "Foo", "description": "something else", "price": 99.0, "tax": 0.0, "tags": ["pop"], "image": { "url": "http://example.com/foo.jpg", "name": "The Bar alive" }}' -H 'Content-Type: application/json'
curl http://127.0.0.1:8000/items/1
(and checked that the contents changed)Also checked the docs
http://127.0.0.1:8000/docs
and it looked okay.This update has been submitted for stable by bodhi.
This update has been pushed to stable.