- Updated requirements to include asyncpg, pyyaml, aiofiles, and httpx. - Modified schema.sql to add 'tipo_pasto' column in 'pasti' table. - Created .gitignore file to exclude unnecessary files and directories. - Added README.md for API implementation details and directory structure. - Introduced config.yaml for centralized configuration management. - Implemented core modules for database management, authentication, and exception handling. - Developed models for 'pietanze', 'pasti', and 'prenotazioni' with validation. - Created routes for CRUD operations on 'pietanze' with pagination and filtering. - Established logging and error handling mechanisms throughout the application. - Set up FastAPI application with CORS and health check endpoint.
28 lines
802 B
Python
28 lines
802 B
Python
from .pietanze import PietanzaBase, PietanzaCreate, PietanzaUpdate, PietanzaResponse
|
|
from .pasti import PastoBase, PastoCreate, PastoUpdate, PastoResponse, TipoPasto
|
|
from .prenotazioni import PrenotazioneBase, PrenotazioneCreate, PrenotazioneUpdate, PrenotazioneResponse, StatoPrenotazione
|
|
from .common import ErrorResponse, PaginatedResponse
|
|
|
|
__all__ = [
|
|
# Pietanze models
|
|
"PietanzaBase",
|
|
"PietanzaCreate",
|
|
"PietanzaUpdate",
|
|
"PietanzaResponse",
|
|
# Pasti models
|
|
"PastoBase",
|
|
"PastoCreate",
|
|
"PastoUpdate",
|
|
"PastoResponse",
|
|
"TipoPasto",
|
|
# Prenotazioni models
|
|
"PrenotazioneBase",
|
|
"PrenotazioneCreate",
|
|
"PrenotazioneUpdate",
|
|
"PrenotazioneResponse",
|
|
"StatoPrenotazione",
|
|
# Common models
|
|
"ErrorResponse",
|
|
"PaginatedResponse"
|
|
]
|