3 services are updated

This commit is contained in:
2025-05-13 18:29:02 +03:00
parent cd62d96158
commit 6dfa17c5e6
54 changed files with 1374 additions and 148 deletions

View File

@@ -1,7 +1,8 @@
from .result import PaginationResult
from .base import PostgresResponseSingle
from pydantic import BaseModel
from typing import Any
from typing import Any, Type
class EndpointResponse(BaseModel):
"""Endpoint response model."""
@@ -33,7 +34,10 @@ class EndpointResponse(BaseModel):
"data": result_data,
"pagination": pagination_dict,
}
model_config = {
"arbitrary_types_allowed": True
}
class CreateEndpointResponse(BaseModel):
"""Create endpoint response model."""
@@ -51,3 +55,6 @@ class CreateEndpointResponse(BaseModel):
"data": self.data.data,
}
model_config = {
"arbitrary_types_allowed": True
}