1- from pydantic import BaseModel , ConfigDict
1+ from pydantic import BaseModel , ConfigDict , Field
2+
3+ from app .controller .utils .pagination import Pagination
24
35
46class DummyModelDTO (BaseModel ):
@@ -18,3 +20,41 @@ class DummyModelInputDTO(BaseModel):
1820 """DTO for creating new dummy model."""
1921
2022 name : str
23+
24+
25+ class DummyDataResponse (BaseModel ):
26+ """Model for the data returned by a Dummy API endpoint."""
27+
28+ dummyId : str = Field (..., examples = ["a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11" ])
29+ name : str = Field (..., examples = ["John Doe" ])
30+
31+
32+ class DummyCreate (BaseModel ):
33+ """Model for creating a new dummy model."""
34+
35+ name : str = Field (..., examples = ["John Doe" ])
36+
37+
38+ class DummyUpdate (BaseModel ):
39+ """Model for updating a Dummy."""
40+
41+ name : str | None = Field (default = None , examples = ["John Doe" ])
42+
43+
44+ class CustomerListResponse (BaseModel ):
45+ """Model for the response of a dummy API endpoint.
46+
47+ This class represents the structure of the response returned by an customer API endpoint.
48+ It includes a 'data' attribute, which is a list of `CustomerListData` objects,
49+ and a 'pagination' attribute, which is a `Pagination` object.
50+
51+ Attributes:
52+ data (list[CustomerListData] | None): The data returned by the endpoint.
53+ This is a list of `CustomerListData` objects. If no data is returned,
54+ this is None.
55+ pagination (Pagination | None): The pagination information for the data.
56+ If no pagination information is provided, this is None.
57+ """
58+
59+ data : list [DummyDataResponse ] = Field (default = [])
60+ pagination : Pagination | None = Field (default = None )
0 commit comments