{"openapi":"3.1.0","info":{"title":"FitAlp","version":"0.1.0"},"paths":{"/chat/send":{"post":{"tags":["chat"],"summary":"Send Message","description":"AI koça mesaj gönder","operationId":"send_message_chat_send_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_send_message_chat_send_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/chat/history":{"get":{"tags":["chat"],"summary":"Get Chat History","description":"Chat geçmişini getir","operationId":"get_chat_history_chat_history_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/chat/smart-notification":{"get":{"tags":["chat"],"summary":"Get Smart Notification","description":"AI ile günlük duruma göre akıllı push bildirim mesajı oluştur (6 saatlik cache)","operationId":"get_smart_notification_chat_smart_notification_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/nutrition/analyze":{"post":{"tags":["nutrition"],"summary":"Analyze Food","description":"Yemek fotoğrafını analiz et ve kaydet","operationId":"analyze_food_nutrition_analyze_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_analyze_food_nutrition_analyze_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/nutrition/today":{"get":{"tags":["nutrition"],"summary":"Get Today Meals","description":"Bugünkü öğünleri getir","operationId":"get_today_meals_nutrition_today_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/nutrition/history/{target_date}":{"get":{"tags":["nutrition"],"summary":"Get Meals By Date","description":"Belirli bir günün öğünlerini getir","operationId":"get_meals_by_date_nutrition_history__target_date__get","parameters":[{"name":"target_date","in":"path","required":true,"schema":{"type":"string","title":"Target Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/nutrition/meal/{meal_id}":{"delete":{"tags":["nutrition"],"summary":"Delete Meal","description":"Öğün sil","operationId":"delete_meal_nutrition_meal__meal_id__delete","parameters":[{"name":"meal_id","in":"path","required":true,"schema":{"type":"integer","title":"Meal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health/garmin/today":{"get":{"tags":["health"],"summary":"Get Garmin Today","description":"Bugünkü Garmin verilerini çek","operationId":"get_garmin_today_health_garmin_today_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/garmin/sync":{"get":{"tags":["health"],"summary":"Sync Garmin To Db","description":"Garmin verilerini çek ve DB'ye kaydet","operationId":"sync_garmin_to_db_health_garmin_sync_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/weight":{"post":{"tags":["health"],"summary":"Update Weight","description":"Kilo güncelle (Xiaomi Scale / Manuel)","operationId":"update_weight_health_weight_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeightUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health/measurements":{"post":{"tags":["health"],"summary":"Add Measurements","description":"Vücut ölçüsü ekle","operationId":"add_measurements_health_measurements_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyMeasurementCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health/measurements-history":{"get":{"tags":["health"],"summary":"Get Measurements History","description":"Tüm vücut ölçüleri geçmişi (kilo bilgisiyle)","operationId":"get_measurements_history_health_measurements_history_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/profile":{"get":{"tags":["health"],"summary":"Get Profile","description":"Profil bilgilerini getir","operationId":"get_profile_health_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["health"],"summary":"Update Profile","description":"Kullanıcı profilini güncelle/oluştur","operationId":"update_profile_health_profile_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health/dashboard":{"get":{"tags":["health"],"summary":"Get Dashboard","description":"Günlük dashboard verisi","operationId":"get_dashboard_health_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/daily-report":{"get":{"tags":["health"],"summary":"Get Daily Report","description":"Dünün AI günlük raporu","operationId":"get_daily_report_health_daily_report_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/weekly-report":{"get":{"tags":["health"],"summary":"Get Weekly Report","description":"Haftalık AI raporu","operationId":"get_weekly_report_health_weekly_report_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/progress-photo":{"post":{"tags":["health"],"summary":"Upload Progress Photo","description":"İlerleme fotoğrafı yükle","operationId":"upload_progress_photo_health_progress_photo_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_progress_photo_health_progress_photo_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health/progress-photos":{"get":{"tags":["health"],"summary":"Get Progress Photos","description":"Tüm ilerleme fotoğraflarını getir","operationId":"get_progress_photos_health_progress_photos_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/fasting-history":{"get":{"tags":["health"],"summary":"Get Fasting History","description":"Açlık geçmişi ve istatistikler","operationId":"get_fasting_history_health_fasting_history_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/calorie-history":{"get":{"tags":["health"],"summary":"Get Calorie History","description":"Son 30 günün kalori açığı geçmişi","operationId":"get_calorie_history_health_calorie_history_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/workout/exercises":{"get":{"tags":["workout"],"summary":"Get Exercise Db","description":"Egzersiz veritabanını getir","operationId":"get_exercise_db_workout_exercises_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/workout/today":{"get":{"tags":["workout"],"summary":"Get Today Workout","description":"Bugünkü antrenman planını getir","operationId":"get_today_workout_workout_today_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/workout/generate":{"post":{"tags":["workout"],"summary":"Generate Workout","description":"AI koçtan bugün için antrenman planı oluştur","operationId":"generate_workout_workout_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkoutPlanRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workout/complete":{"post":{"tags":["workout"],"summary":"Complete Workout","description":"Antrenmanı tamamla","operationId":"complete_workout_workout_complete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkoutComplete"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workout/history":{"get":{"tags":["workout"],"summary":"Get Workout History","description":"Geçmiş antrenmanları getir","operationId":"get_workout_history_workout_history_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/feedback/screenshot":{"post":{"tags":["feedback"],"summary":"Upload Screenshot","description":"Feedback ekran görüntüsü yükle","operationId":"upload_screenshot_feedback_screenshot_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_screenshot_feedback_screenshot_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/feedback/screenshots":{"get":{"tags":["feedback"],"summary":"List Screenshots","description":"Kaydedilmiş feedback ekran görüntülerini listele","operationId":"list_screenshots_feedback_screenshots_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/feedback/screenshot/{filename}":{"get":{"tags":["feedback"],"summary":"Get Screenshot","description":"Ekran görüntüsünü getir","operationId":"get_screenshot_feedback_screenshot__filename__get","parameters":[{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health-check":{"get":{"summary":"Health Check","operationId":"health_check_health_check_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"BodyMeasurementCreate":{"properties":{"waist_cm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Waist Cm"},"chest_cm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Chest Cm"},"arm_cm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Arm Cm"},"leg_cm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leg Cm"},"hip_cm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hip Cm"},"neck_cm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Neck Cm"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","default":""}},"type":"object","title":"BodyMeasurementCreate"},"Body_analyze_food_nutrition_analyze_post":{"properties":{"image":{"type":"string","format":"binary","title":"Image"},"description":{"type":"string","title":"Description","default":""},"meal_type":{"type":"string","title":"Meal Type","default":"snack"}},"type":"object","required":["image"],"title":"Body_analyze_food_nutrition_analyze_post"},"Body_send_message_chat_send_post":{"properties":{"message":{"type":"string","title":"Message"},"image":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"Image"}},"type":"object","required":["message"],"title":"Body_send_message_chat_send_post"},"Body_upload_progress_photo_health_progress_photo_post":{"properties":{"image":{"type":"string","format":"binary","title":"Image"},"notes":{"type":"string","title":"Notes","default":""}},"type":"object","required":["image"],"title":"Body_upload_progress_photo_health_progress_photo_post"},"Body_upload_screenshot_feedback_screenshot_post":{"properties":{"image":{"type":"string","format":"binary","title":"Image"},"screen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screen","default":"unknown"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","default":""}},"type":"object","required":["image"],"title":"Body_upload_screenshot_feedback_screenshot_post"},"ExerciseComplete":{"properties":{"exercise_name":{"type":"string","title":"Exercise Name"},"sets_done":{"type":"integer","title":"Sets Done"},"reps_done":{"type":"string","title":"Reps Done"},"weight_kg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weight Kg"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["exercise_name","sets_done","reps_done"],"title":"ExerciseComplete"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ProfileUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"birth_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Birth Date"},"height_cm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Height Cm"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"},"goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Goal"},"activity_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activity Level"},"smoking_daily":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Smoking Daily"},"medications":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medications"},"allergies":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Allergies"}},"type":"object","title":"ProfileUpdate"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WeightUpdate":{"properties":{"weight_kg":{"type":"number","title":"Weight Kg"},"body_fat_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Body Fat Pct"},"muscle_mass_kg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Muscle Mass Kg"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"}},"type":"object","required":["weight_kg"],"title":"WeightUpdate"},"WorkoutComplete":{"properties":{"workout_id":{"type":"integer","title":"Workout Id"},"duration_min":{"type":"integer","title":"Duration Min"},"exercises":{"items":{"$ref":"#/components/schemas/ExerciseComplete"},"type":"array","title":"Exercises"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["workout_id","duration_min","exercises"],"title":"WorkoutComplete"},"WorkoutPlanRequest":{"properties":{"focus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Focus"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location","default":"gym"}},"type":"object","title":"WorkoutPlanRequest"}}}}