updated Api Defaults
This commit is contained in:
@@ -134,3 +134,21 @@ class EndpointResponse(BaseModel):
|
||||
"data": resutl_data,
|
||||
"pagination": pagination_dict,
|
||||
}
|
||||
|
||||
|
||||
class CreateEndpointResponse(BaseModel):
|
||||
"""Create endpoint response model."""
|
||||
|
||||
completed: bool = True
|
||||
message: str = "Success"
|
||||
data: Any
|
||||
|
||||
@property
|
||||
def response(self):
|
||||
"""Convert response to dictionary format."""
|
||||
return {
|
||||
"completed": self.completed,
|
||||
"message": self.message,
|
||||
"data": self.data,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user