Skip to course content
Free generative AI app course

Generative AI Application Development with Python

Module 10 Summary

What this module established

One request model, one handler, one response shape - and TestClient to exercise it in-process. Put validation on the request model so it runs before your code and cannot be forgotten by a new endpoint.

Carry forward

Before moving on

Move on when your endpoint is exercised with no server, validation runs before the handler, and slow work has left the request path.