Generate FastAPI endpoints from a model