FastAPI drug interaction API guide

Add a typed backend adapter with bounded timeouts and stable error translation.

Minimal request

Send X-API-Key from a server-side environment variable, pass drug inputs as encoded query parameters, and enforce a bounded timeout.

Response handling

Check HTTP errors before narrowing result_status. Treat nullable clinical fields as optional and keep the dataset release with stored output.

Production checklist

Add request-ID logging, safe retry rules, contract fixtures, quota monitoring, and a clinical disclaimer near rendered results.