initialize backend with FastAPI and Docker setup
This commit is contained in:
1 parent
5d724e37ab
commit
5ff02c0ff5
24 files changed
+420
-243
No files matched your search
@@ -0,0 +1,20 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
class ExperienceTaskResponse(BaseModel):
|
||||
id: int
|
||||
description: str
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
|
||||
class ExperienceResponse(BaseModel):
|
||||
id: int
|
||||
company: str
|
||||
location: str
|
||||
duration: str
|
||||
role: str
|
||||
tasks: list[ExperienceTaskResponse]
|
||||
|
||||
class Config:
|
||||
from_attributes = Trues
|
||||
|
||||
Reference in new issue
Block a user