jupiter0913 commited on
Commit ·
76be69d
1
Parent(s): aeda442
feature(#98): implemented read emails api
Browse files
Brain/src/model/requests/request_model.py
CHANGED
|
@@ -228,7 +228,7 @@ class EmailReader(BasicReq):
|
|
| 228 |
|
| 229 |
data: Body
|
| 230 |
|
| 231 |
-
|
| 232 |
"""endpoint : /contact/get_by_ids"""
|
| 233 |
|
| 234 |
|
|
|
|
| 228 |
|
| 229 |
data: Body
|
| 230 |
|
| 231 |
+
|
| 232 |
"""endpoint : /contact/get_by_ids"""
|
| 233 |
|
| 234 |
|
Brain/src/router/api.py
CHANGED
|
@@ -556,15 +556,13 @@ def construct_blueprint_api() -> APIRouter:
|
|
| 556 |
return e.get_response_exp()
|
| 557 |
return assembler.to_response(400, "Failed to read emails", "")
|
| 558 |
return assembler.to_response(200, "", result)
|
| 559 |
-
)
|
| 560 |
|
| 561 |
-
|
| 562 |
"""@generator.request_body(
|
| 563 |
{
|
| 564 |
"token": "String",
|
| 565 |
"uuid": "String",
|
| 566 |
"contactIds": [
|
| 567 |
-
String
|
| 568 |
]
|
| 569 |
}
|
| 570 |
)
|
|
@@ -591,5 +589,4 @@ def construct_blueprint_api() -> APIRouter:
|
|
| 591 |
|
| 592 |
return assembler.to_response(200, "Success to get contacts by uuid", result)
|
| 593 |
|
| 594 |
-
|
| 595 |
return router
|
|
|
|
| 556 |
return e.get_response_exp()
|
| 557 |
return assembler.to_response(400, "Failed to read emails", "")
|
| 558 |
return assembler.to_response(200, "", result)
|
|
|
|
| 559 |
|
|
|
|
| 560 |
"""@generator.request_body(
|
| 561 |
{
|
| 562 |
"token": "String",
|
| 563 |
"uuid": "String",
|
| 564 |
"contactIds": [
|
| 565 |
+
"String"
|
| 566 |
]
|
| 567 |
}
|
| 568 |
)
|
|
|
|
| 589 |
|
| 590 |
return assembler.to_response(200, "Success to get contacts by uuid", result)
|
| 591 |
|
|
|
|
| 592 |
return router
|