# 02 — Web API z `FastAPI` + `Pydantic` ## Zadania (`api_fastapi.py`) 1. `GET /health` -> `{"status": "ok"}`. 2. `POST /echo` -> przyjmuje `EchoRequest(message: str)`; odrzuca pusty napis (po `strip()`) kodem `400`, w przeciwnym razie zwraca `EchoResponse(echoed=..., length=...)`. ## Uruchomienie testów ```bash make test MOD=03-ecosystems/02-web-api-fastapi ```