from fastapi import FastAPI
from pydantic import BaseModel
app = FastAPI()
class Introduction(BaseModel):
name: str = 'Shymaa Medhat'
job_title: str = 'Backend Developer'
knowledge: list = ['Python','Django','FastAPI','Rest Framework', 'Graphql', 'Swagger', 'PostgreSQL', 'MongoDB']
@app.post("/introduce_yourself")
async def introduce_yourself(request: Introduction):
name = request.name
job_title = request.job_title
knowledge = ', '.join(request.knowledge)
introduction = f"Hello, my name is {name}. I am a {job_title} and I have Knowledge in {knowledge}."
return {'introduction': introduction}
-
💻 Python (Django,FastAPI)
-
🗄️ Relational and NoSQL Databases (PostgreSQL, MongoDB)
-
🚀 RESTful API Development and Graphql
-
🌐 Server Deployment and Management (Docker,pythonanywhere)
-
⚡ fact: ...
-
Programming is the art of turning imagination into reality