from rest_framework.decorators import api_view
from rest_framework.response import Response
@api_view(['POST'])
def introduce_yourself(request):
name = request.data.get('name', Mohamed Abdelmonem')
occupation = request.data.get('occupation', 'Software Developer')
interests = request.data.get('interests', ['Python', 'Django', 'Rest Framework'])
introduction = f"Hello, my name is {name}. I am a {occupation} and my interests include {', '.join(interests)}."
return Response({'introduction': introduction})
βοΈ β Enjoying programming and sharing knowledge
β€οΈ β Love writing code and learning new features
π§ β Reach me anytime: [email protected]
π¬ β Ask me about anything here
π β Check out my portfolio: My Portfolio