3 services are updated
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user