Updated dependencies for FastAPI and Pydantic to the most recent versions.
Updated depdencies and api code to use the new means of referring to defintions in pydantic ($defs)
Updated depdencies and api code to use the new means of referring to defintions in pydantic ($defs)