feat: implemented specialist profile on get user by id endpoint
Summary
Get user with id now returns specialist info if is specialist
Details
When the user id is from a specialist the return is changed to this format: { "user_id": "3b7b8f8e-8f8e-4f8e-8f8e-3b7b8f8e8f8e", "name": "Maria Eduarda Wendel Maia", "email": "[email protected]", "user_type": "specialist", "profile_picture": "profile1.jpg", "specialist_profile": { "specialist_id": "3b7b8f8e-8f8e-4f8e-8f8e-3b7b8f8e8f8e", "specialty": "Psicologia infantil", "description": "Especialista em criatividade e inovação, com 10 anos de experiência ajudando pessoas a desbloquear seu potencial criativo.", "council_number": "CRP 12345" } } The only-specialist info is inside the specialist_profile dictionary. An admin cannot obtain information from another user, contrary to what is stated in the task requirements.