odoo_xmlrpc_twisted.modelsΒΆ
Pydantic Models for FastAPI REST API Interface.
This package contains Pydantic data models that define request and response schemas
for the FastAPI REST API bridge (see odoo_xmlrpc_twisted.odoo_bridge_secure).
The models provide:
Automatic request validation
Type checking and coercion
Interactive API documentation (OpenAPI/Swagger)
Serialization and deserialization
Model categories defined in schemas.py:
User Management Models (UserLogin, CreateUser, PasswordChange, etc.)
Product Management Models (ProductCreate, ProductUpdate, PictureSave)
Order Management Models (CreateOrder)
Response Models (SuccessResponse, ErrorResponse, HealthResponse, etc.)
These models ensure type safety and consistent data structures across all FastAPI endpoints, providing a clear contract between the API and external partners/clients.