initialize backend with FastAPI and Docker setup

This commit is contained in:
Giovanni committed 2026-06-03 11:35:09 +02:00
1 parent 5d724e37ab
commit 5ff02c0ff5
24 files changed
+420 -243

No files matched your search

+20
View File
@@ -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
+33
View File
@@ -0,0 +1,33 @@
from pydantic import BaseModel
from app.schemas.skill import ProjectSkill
class ProjectCard(BaseModel):
id: int
title: str
short_description: str
image_name: str
school: bool
beginning_year: int
end_year: int | None
skills: list[ProjectSkill]
class Config:
from_attributes = True
class ProjectPage(BaseModel):
id: int
title: str
short_description: str
long_description: str
repo_link: str | None
nb_image: int
image_name: str
school: bool
beginning_year: int
end_year: int | None
skills: list[ProjectSkill]
class Config:
from_attributes = True
+17
View File
@@ -0,0 +1,17 @@
from pydantic import BaseModel
class SkillResponse(BaseModel):
id: int
name: str
type: str
class Config:
from_attributes = True
class ProjectSkill(BaseModel):
id: int
name: str
class Config:
from_attributes = True