backend/med_backend/web/api/dummy/schema.py

22 lines
334 B
Python

from pydantic import BaseModel
class DummyModelDTO(BaseModel):
"""
DTO for dummy models.
It returned when accessing dummy models from the API.
"""
id: int
name: str
class Config:
orm_mode = True
class DummyModelInputDTO(BaseModel):
"""DTO for creating new dummy model."""
name: str