This commit is contained in:
Tyrel Souza 2022-10-14 14:39:57 -04:00
parent 59d31704bd
commit 3827986593
No known key found for this signature in database
GPG Key ID: F6582CF1308A2360
2 changed files with 5 additions and 1 deletions

View File

@ -10,5 +10,9 @@ pip install -r requirements.txt
python -m uvicorn app:app --reload
```
Note: First time touching FastAPI in this manner, so organization
is not great. Any questions of "WTF?? Why did you do it this way?" - because it ended up that way,
I have not worked on a project of this scope so moving _LEGO_ bits around just worked.
Paired with https://gitea.tyrel.dev/tyrel/go-webservice-gin

View File

@ -44,7 +44,7 @@ def get_album(album_id: int, session: Session = Depends(get_db)):
raise HTTPException(**ex.__dict__)
# API to update a existing album info
# API to update an existing album info
@router.put("/albums/{album_id}", response_model=models.schemas.Album)
def update_album(album_id: int, new_info: models.schemas.AlbumBase, session: Session = Depends(get_db)):
try: