This time, I built a blog API that allows user registration and login saved to a database, as well as creating, listing, updating, and deleting posts. This is an "API" that does not create screens ...
Claude Codeの検証がてら作った、FastAPI+SQLAlchemy+MySQLのレシピ管理APIがある。CRUDだけのシンプルな構成だけど、SQLAlchemyの基本的な使い方を整理するにはちょうどいい題材だったので、実際のコードを見ながらまとめておく。 リポジトリはこちら。 生のSQL文字 ...