Northline Repair's workshop coordinator needs a local service for repair records. Records contain an ID, a title, and an open or closed status. Deliver all eight response contracts, reject duplicate IDs without overwriting records, validate creation bodies, and keep the service state isolated between check runs.
Northline Repair needs a small internal API to track workshop jobs. The service must create repairs, find them, close them, and remove them without letting a repeated ID silently replace an earlier job. You build those decisions in a real FastAPI application.
Each step starts from your previous working code and adds a required behavior. Keep the request loop: it sends JSON requests through ASGITransport without opening a server socket. The in-memory repository is intentional for this project; it resets for each check and does not claim durable storage. The final service validates request bodies with Pydantic v2, supports status filtering, and distinguishes a successful deletion from a missing record. Earlier routes must keep working as you extend it.
The health request crosses FastAPI through an in-process ASGI client. Every invocation owns a fresh app.