I use FastAPi and Pydantic to model the requests and responses to an POST API.
I defined three class:
from pydantic import BaseModel, Field from typing