{"openapi":"3.1.0","info":{"title":"NexBet24 - AI Sports Analytics","version":"0.1.0"},"paths":{"/":{"get":{"summary":"Home","operationId":"home__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/register":{"post":{"summary":"Register","operationId":"register_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRegister"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/verify-email":{"post":{"summary":"Verify Email","operationId":"verify_email_verify_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/resend-verification":{"post":{"summary":"Resend Verification","operationId":"resend_verification_resend_verification_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendVerificationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/login":{"post":{"summary":"Login","operationId":"login_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me":{"get":{"summary":"Get Me","operationId":"get_me_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/forgot-password/send-code":{"post":{"summary":"Send Reset Code","operationId":"send_reset_code_forgot_password_send_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/forgot-password/verify":{"post":{"summary":"Verify Reset Code","operationId":"verify_reset_code_forgot_password_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/change-password":{"post":{"summary":"Change Password","operationId":"change_password_change_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/matchs/all":{"get":{"summary":"Get Matches","operationId":"get_matches_matchs_all_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/matchs/unlock/{match_id}":{"post":{"summary":"Unlock Match","operationId":"unlock_match_matchs_unlock__match_id__post","parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats/history":{"get":{"summary":"Get History","operationId":"get_history_stats_history_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Season"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stripe-key":{"get":{"summary":"Stripe Key","operationId":"stripe_key_stripe_key_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/create-checkout-session":{"post":{"summary":"Create Checkout","operationId":"create_checkout_create_checkout_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook":{"post":{"summary":"Webhook","operationId":"webhook_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/my-transactions":{"get":{"summary":"Get My Transactions","operationId":"get_my_transactions_my_transactions_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transparency/history":{"get":{"summary":"Get Transparency History","description":"Endpoint public pour afficher l'historique des prédictions et le ROI.\n\nParamètres:\n- limit: nombre max de matchs à retourner (défaut: 150)\n- year: filtrer par année (ex: 2026)\n- season: '2026-2027' (défaut, cotes live), '2025-2026' (benchmark 1.90), ou 'all'","operationId":"get_transparency_history_transparency_history_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":150,"title":"Limit"}},{"name":"year","in":"query","required":false,"schema":{"type":"integer","title":"Year"}},{"name":"season","in":"query","required":false,"schema":{"type":"string","default":"2026-2027","title":"Season"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/strategy/history":{"get":{"summary":"Get Strategy History","description":"Staking Strategies Simulator with Linear Kelly, EV Staking & Sub-Kelly Modulated:\n- Tenth Kelly : f = f* / 10 (100% Linear Kelly, low risk)\n- Linear EV : f = k * EV (Direct EV proportionality, alpha = 0)\n- Sub-Kelly Modulated : f = k * EV / (C - 1)^alpha (alpha in [0, 1[)\n- Half Kelly : f = f* / 2 (50% Kelly, professional standard)\n- Full Kelly : f* = (p * C - 1) / (C - 1) (Maximum theoretical growth)\n- Flat 1u : 1-unit fixed baseline stake\nCumulative filters:\n- min_odds: bets only placed if C >= min_odds\n- algo_filter: if True, bets only placed if algorithm confirmed EV > 0 (Value Bet).\n  If False, bets on ALL games where AI made a prediction.","operationId":"get_strategy_history_strategy_history_get","parameters":[{"name":"season","in":"query","required":false,"schema":{"type":"string","default":"2026-2027","title":"Season"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","default":"compounding","title":"Mode"}},{"name":"min_odds","in":"query","required":false,"schema":{"type":"number","default":0.0,"title":"Min Odds"}},{"name":"algo_filter","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Algo Filter"}},{"name":"k_ev","in":"query","required":false,"schema":{"type":"number","default":0.1,"title":"K Ev"}},{"name":"k_mod","in":"query","required":false,"schema":{"type":"number","default":0.08,"title":"K Mod"}},{"name":"alpha","in":"query","required":false,"schema":{"type":"number","default":0.5,"title":"Alpha"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":150,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transparency/ai-performance":{"get":{"summary":"Get Ai Performance","description":"Retourne les performances de chaque IA individuellement.\nUtile pour montrer quel modèle performe le mieux.\n\nNote: Nécessite que tu stockes les prédictions individuelles de chaque IA.\nPour l'instant, on utilise les données agrégées.","operationId":"get_ai_performance_transparency_ai_performance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/transparency/streaks":{"get":{"summary":"Get Streaks","description":"Retourne les séries en cours (winning/losing streaks).","operationId":"get_streaks_transparency_streaks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/matches/history":{"get":{"summary":"Get Matches History","description":"Retourne tous les matchs avec leurs résultats pour la page Results","operationId":"get_matches_history_matches_history_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/sync-daily":{"post":{"summary":"Api Sync Daily","description":"Lance la synchronisation complète (scores de la nuit + cotes du jour)","operationId":"api_sync_daily_admin_sync_daily_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/sync-odds":{"post":{"summary":"Api Sync Odds","description":"Recupere les cotes des bookmakers en direct pour les matchs futurs","operationId":"api_sync_odds_admin_sync_odds_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/sync-results":{"post":{"summary":"Api Sync Results","description":"Recupere les scores finaux et calcule les gains reels avec les cotes","operationId":"api_sync_results_admin_sync_results_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/{page}.html":{"get":{"summary":"Serve Html Pages","description":"Sert n'importe quelle page demandée en Jinja2 ou en fallback statique","operationId":"serve_html_pages__page__html_get","parameters":[{"name":"page","in":"path","required":true,"schema":{"type":"string","title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ChangePasswordRequest":{"properties":{"email":{"type":"string","title":"Email"},"old_password":{"type":"string","title":"Old Password"},"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["email","old_password","new_password"],"title":"ChangePasswordRequest"},"CheckoutRequest":{"properties":{"pack_id":{"type":"string","title":"Pack Id"},"user_email":{"type":"string","title":"User Email"},"affiliation":{"type":"string","title":"Affiliation","default":""}},"type":"object","required":["pack_id","user_email"],"title":"CheckoutRequest"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ResendVerificationRequest":{"properties":{"email":{"type":"string","title":"Email"},"code":{"type":"string","title":"Code","default":""}},"type":"object","required":["email"],"title":"ResendVerificationRequest"},"ResetPasswordRequest":{"properties":{"email":{"type":"string","title":"Email"},"code":{"type":"string","title":"Code"},"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["email","code","new_password"],"title":"ResetPasswordRequest"},"UserRegister":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"},"pseudo":{"type":"string","title":"Pseudo","default":""},"accept_cgu":{"type":"boolean","title":"Accept Cgu"},"is_adult":{"type":"boolean","title":"Is Adult"}},"type":"object","required":["email","password","accept_cgu","is_adult"],"title":"UserRegister"},"UserSchema":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"UserSchema"},"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"},"VerifyEmailRequest":{"properties":{"email":{"type":"string","title":"Email"},"code":{"type":"string","title":"Code"}},"type":"object","required":["email","code"],"title":"VerifyEmailRequest"}}}}