cahnges
Browse files
app.py
CHANGED
@@ -129,11 +129,13 @@ def ExtractSkills(skill_data: SkillDetails):
|
|
129 |
from datetime import datetime
|
130 |
from typing import Union
|
131 |
class Item(BaseModel):
|
132 |
-
title: str
|
133 |
-
timestamp: datetime
|
134 |
description: Union[str, None] = None
|
135 |
|
136 |
@app.post("/getProfileMatchResultsByName/{id}")
|
137 |
-
def getProfileMatchResultsByName(id: str
|
|
|
|
|
|
|
138 |
json_compatible_item_data = jsonable_encoder(item)
|
139 |
return JSONResponse(content=json_compatible_item_data)
|
|
|
129 |
from datetime import datetime
|
130 |
from typing import Union
|
131 |
class Item(BaseModel):
|
132 |
+
title: str
|
|
|
133 |
description: Union[str, None] = None
|
134 |
|
135 |
@app.post("/getProfileMatchResultsByName/{id}")
|
136 |
+
def getProfileMatchResultsByName(id: str):
|
137 |
+
item: Item
|
138 |
+
item.title ='test'
|
139 |
+
item.description = 'desc'
|
140 |
json_compatible_item_data = jsonable_encoder(item)
|
141 |
return JSONResponse(content=json_compatible_item_data)
|